public List < ValidationData > findAll ( boolean referenceCache ) { if ( referenceCache && this . datas != null ) { return this . datas ; } List < ValidationData > list = null ; File repositroyFile = new File ( this . validationConfig . getRepositoryPath ( ) ) ; try { String jsonStr = ValidationFileUtil . readFileToString ( repositroyFile , Charset . forName ( "UTF-8" ) ) ; list = objectMapper . readValue ( jsonStr , objectMapper . getTypeFactory ( ) . constructCollectionType ( List . class , ValidationData . class ) ) ; } catch ( IOException e ) { log . error ( "repository json file read error : " + repositroyFile . getAbsolutePath ( ) ) ; list = new ArrayList <> ( ) ; } this . parentObjInit ( list ) ; if ( referenceCache ) { this . datas = list ; } return list ; }
Find all list .