コード例 #1
0
 public void removePersistenceService(PersistenceService service) {
   persistenceServices.remove(service.getId());
 }
コード例 #2
0
 public void removePersistenceService(PersistenceService persistenceService) {
   stopEventHandling(persistenceService.getName());
   persistenceServices.remove(persistenceService.getName());
 }
コード例 #3
0
 public void addPersistenceService(PersistenceService service) {
   if (service instanceof QueryablePersistenceService) {
     persistenceServices.put(service.getId(), (QueryablePersistenceService) service);
   }
 }
コード例 #4
0
 public void addPersistenceService(PersistenceService persistenceService) {
   logger.debug("Initializing {} persistence service.", persistenceService.getName());
   persistenceServices.put(persistenceService.getName(), persistenceService);
   stopEventHandling(persistenceService.getName());
   startEventHandling(persistenceService.getName());
 }