Example #1
0
 @Override
 public void removedService(ServiceReference reference, Object service) {
   LoggerFactory loggerFactory = (LoggerFactory) service;
   loggerFactory.onStop();
   listener.factoryRemoved(loggerFactory);
   super.removedService(reference, service);
 }
Example #2
0
 @Override
 public Object addingService(ServiceReference reference) {
   LoggerFactory loggerFactory = (LoggerFactory) super.addingService(reference);
   loggerFactory.onStart(bc);
   listener.factoryAdded(loggerFactory);
   return loggerFactory;
 }