@Test public void testInit() { fileLoader.init(); }
@PostConstruct public void init() { List<String> adPlanStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN) ); adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adPlanString, AdPlanTable.class), OpType.ADD )); List<String> adCreativeStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE) ); adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adCreativeString, AdCreativeTable.class), OpType.ADD )); List<String> adUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT) ); adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adUnitString, AdUnitTable.class), OpType.ADD )); List<String> adCreativeUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT) ); adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class), OpType.ADD )); List<String> adUnitDistrictStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT) ); adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class), OpType.ADD )); List<String> adUnitItStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT) ); adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitItString, AdUnitItTable.class), OpType.ADD )); List<String> adUnitKeywordStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD) ); adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class), OpType.ADD )); }
IndexFileLoader { @PostConstruct public void init() { List<String> adPlanStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN) ); adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adPlanString, AdPlanTable.class), OpType.ADD )); List<String> adCreativeStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE) ); adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adCreativeString, AdCreativeTable.class), OpType.ADD )); List<String> adUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT) ); adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adUnitString, AdUnitTable.class), OpType.ADD )); List<String> adCreativeUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT) ); adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class), OpType.ADD )); List<String> adUnitDistrictStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT) ); adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class), OpType.ADD )); List<String> adUnitItStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT) ); adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitItString, AdUnitItTable.class), OpType.ADD )); List<String> adUnitKeywordStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD) ); adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class), OpType.ADD )); } }
IndexFileLoader { @PostConstruct public void init() { List<String> adPlanStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN) ); adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adPlanString, AdPlanTable.class), OpType.ADD )); List<String> adCreativeStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE) ); adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adCreativeString, AdCreativeTable.class), OpType.ADD )); List<String> adUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT) ); adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adUnitString, AdUnitTable.class), OpType.ADD )); List<String> adCreativeUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT) ); adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class), OpType.ADD )); List<String> adUnitDistrictStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT) ); adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class), OpType.ADD )); List<String> adUnitItStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT) ); adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitItString, AdUnitItTable.class), OpType.ADD )); List<String> adUnitKeywordStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD) ); adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class), OpType.ADD )); }  }
IndexFileLoader { @PostConstruct public void init() { List<String> adPlanStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN) ); adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adPlanString, AdPlanTable.class), OpType.ADD )); List<String> adCreativeStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE) ); adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adCreativeString, AdCreativeTable.class), OpType.ADD )); List<String> adUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT) ); adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adUnitString, AdUnitTable.class), OpType.ADD )); List<String> adCreativeUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT) ); adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class), OpType.ADD )); List<String> adUnitDistrictStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT) ); adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class), OpType.ADD )); List<String> adUnitItStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT) ); adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitItString, AdUnitItTable.class), OpType.ADD )); List<String> adUnitKeywordStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD) ); adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class), OpType.ADD )); }  @PostConstruct void init(); }
IndexFileLoader { @PostConstruct public void init() { List<String> adPlanStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_PLAN) ); adPlanStrings.forEach(adPlanString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adPlanString, AdPlanTable.class), OpType.ADD )); List<String> adCreativeStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE) ); adCreativeStrings.forEach(adCreativeString -> AdLevelDataHandler.handleLevel2( JSON.parseObject(adCreativeString, AdCreativeTable.class), OpType.ADD )); List<String> adUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT) ); adUnitStrings.forEach(adUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adUnitString, AdUnitTable.class), OpType.ADD )); List<String> adCreativeUnitStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_CREATIVE_UNIT) ); adCreativeUnitStrings.forEach(adCreativeUnitString -> AdLevelDataHandler.handleLevel3( JSON.parseObject(adCreativeUnitString, AdCreativeUnitTable.class), OpType.ADD )); List<String> adUnitDistrictStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_DISTRICT) ); adUnitDistrictStrings.forEach(adUnitDistrictString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitDistrictString, AdUnitDistrictTable.class), OpType.ADD )); List<String> adUnitItStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_IT) ); adUnitItStrings.forEach(adUnitItString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitItString, AdUnitItTable.class), OpType.ADD )); List<String> adUnitKeywordStrings = loadDumpData( String.format("%s%s", DConstant.DATA_ROOT_DIR, DConstant.AD_UNIT_KEYWORD) ); adUnitKeywordStrings.forEach(adUnitKeywordString -> AdLevelDataHandler.handleLevel4( JSON.parseObject(adUnitKeywordString, AdUnitKeywordTable.class), OpType.ADD )); }  @PostConstruct void init();  }