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