Пример #1
0
 public final void dispose() {
   try {
     lifecycleManager.fireLifecycle(Disposable.PHASE_NAME);
   } catch (MuleException e) {
     logger.error("Failed to stop service: " + name, e);
   }
   component.dispose();
   muleContext.getStatistics().remove(stats);
 }
Пример #2
0
 public final void dispose() {
   try {
     if (!stopped.get()) {
       stop();
     }
   } catch (MuleException e) {
     // TODO MULE-863: If this is an error, do something!
     logger.error("Failed to stop service: " + name, e);
   }
   doDispose();
   component.dispose();
   initialised.set(false);
   fireServiceNotification(ServiceNotification.SERVICE_DISPOSED);
   muleContext.getStatistics().remove(stats);
 }