@Test public void shouldCallRegenerateMdsDataBundleAfterDdeEnhancement() { mdsBundleRegenerationService.regenerateMdsDataBundleAfterDdeEnhancement(MODULES); verify(jarGeneratorService).regenerateMdsDataBundleAfterDdeEnhancement(eq(schemaHolder), eq(PUPPIES_MODULE), eq(KITTIES_MODULE)); }
@Override public void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames) { Map<String, Object> params = new HashMap<>(); params.put(MODULE_NAMES_EVENT_PARAM, moduleNames); broadcast(REGENERATE_MDS_DATA_BUNDLE_AFTER_DDE_ENHANCEMENT, params); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundleAfterDdeEnhancement(schemaHolder, moduleNames); }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames) { Map<String, Object> params = new HashMap<>(); params.put(MODULE_NAMES_EVENT_PARAM, moduleNames); broadcast(REGENERATE_MDS_DATA_BUNDLE_AFTER_DDE_ENHANCEMENT, params); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundleAfterDdeEnhancement(schemaHolder, moduleNames); } }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames) { Map<String, Object> params = new HashMap<>(); params.put(MODULE_NAMES_EVENT_PARAM, moduleNames); broadcast(REGENERATE_MDS_DATA_BUNDLE_AFTER_DDE_ENHANCEMENT, params); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundleAfterDdeEnhancement(schemaHolder, moduleNames); }  }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames) { Map<String, Object> params = new HashMap<>(); params.put(MODULE_NAMES_EVENT_PARAM, moduleNames); broadcast(REGENERATE_MDS_DATA_BUNDLE_AFTER_DDE_ENHANCEMENT, params); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundleAfterDdeEnhancement(schemaHolder, moduleNames); }  @Override void regenerateMdsDataBundle(); @Override void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames); @Override void handleEvent(Event event); @Autowired void setOsgiEventProxy(OsgiEventProxy osgiEventProxy); @Autowired void setJarGeneratorService(JarGeneratorService jarGeneratorService); @Autowired void setEntityService(EntityService entityService); }
MdsBundleRegenerationServiceImpl implements MdsBundleRegenerationService, EventHandler { @Override public void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames) { Map<String, Object> params = new HashMap<>(); params.put(MODULE_NAMES_EVENT_PARAM, moduleNames); broadcast(REGENERATE_MDS_DATA_BUNDLE_AFTER_DDE_ENHANCEMENT, params); SchemaHolder schemaHolder = entityService.getSchema(); jarGeneratorService.regenerateMdsDataBundleAfterDdeEnhancement(schemaHolder, moduleNames); }  @Override void regenerateMdsDataBundle(); @Override void regenerateMdsDataBundleAfterDdeEnhancement(String... moduleNames); @Override void handleEvent(Event event); @Autowired void setOsgiEventProxy(OsgiEventProxy osgiEventProxy); @Autowired void setJarGeneratorService(JarGeneratorService jarGeneratorService); @Autowired void setEntityService(EntityService entityService);  }