@Inject
 MyInitializer(PersistService service) {
   service.start();
 }
 @Inject
 ApplicationInitializer(PersistService persistenceService) {
   persistenceService.start();
 }
Ejemplo n.º 3
0
 private void stopPersistenceService() {
   persistService.stop();
 }
Ejemplo n.º 4
0
 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();
 }