@Inject MyInitializer(PersistService service) { service.start(); }
@Inject ApplicationInitializer(PersistService persistenceService) { persistenceService.start(); }
private void stopPersistenceService() { persistService.stop(); }
private void startPersistenceService() { persistService.start(); }
public void destroy() { persistService.stop(); }
@Override public void shutdown() { super.shutdown(); persistService.stop(); }
@Inject public DiscoveryDirectoriesLauncher(PersistService persistService) { this.persistService = persistService; persistService.start(); }