@Inject
 MyInitializer(PersistService service) {
   service.start();
 }
コード例 #2
0
 @Inject
 ApplicationInitializer(PersistService persistenceService) {
   persistenceService.start();
 }
コード例 #3
0
 private void stopPersistenceService() {
   persistService.stop();
 }
コード例 #4
0
 private void startPersistenceService() {
   persistService.start();
 }
コード例 #5
0
 public void destroy() {
   persistService.stop();
 }
コード例 #6
0
 @Override
 public void shutdown() {
   super.shutdown();
   persistService.stop();
 }
コード例 #7
0
 @Inject
 public DiscoveryDirectoriesLauncher(PersistService persistService) {
   this.persistService = persistService;
   persistService.start();
 }