@Override public void onNotification(MuleContextNotification notification) { switch (notification.getAction().getActionId()) { case CONTEXT_STARTING: startingNotificationFired.set(true); break; case CONTEXT_STARTED: startedNotificationFired.set(true); break; case CONTEXT_STOPPING: stoppingNotificationFired.set(true); break; case CONTEXT_STOPPED: stoppedNotificationFired.set(true); break; } } }
@Override public void onNotification(MuleContextNotification notification) { Action action = notification.getAction(); if (new IntegerAction(CONTEXT_INITIALISED).equals(action) || new IntegerAction(CONTEXT_STARTED).equals(action) || new IntegerAction(CONTEXT_STOPPED).equals(action) || new IntegerAction(CONTEXT_DISPOSED).equals(action)) { updateStatusFor(muleContext.getLifecycleManager().getCurrentPhase()); } } };
@Override public void onNotification(MuleContextNotification notification) { switch (notification.getAction().getActionId()) { case CONTEXT_STARTING: startingNotificationFired.set(true); break; case CONTEXT_STARTED: startedNotificationFired.set(true); break; case CONTEXT_STOPPING: stoppingNotificationFired.set(true); break; case CONTEXT_STOPPED: stoppedNotificationFired.set(true); break; } } }
@Override public void onNotification(MuleContextNotification notification) { Action action = notification.getAction(); if (new IntegerAction(CONTEXT_INITIALISED).equals(action) || new IntegerAction(CONTEXT_STARTED).equals(action) || new IntegerAction(CONTEXT_STOPPED).equals(action) || new IntegerAction(CONTEXT_DISPOSED).equals(action)) { updateStatusFor(muleContext.getLifecycleManager().getCurrentPhase()); } } };