@Override public void fireLifecycle(String phase) throws LifecycleException { // Implicitly call stop if necessary when disposing if (Disposable.PHASE_NAME.equals(phase) && lifecycleManager.getState().isStarted()) { getLifecycleManager().fireLifecycle(Stoppable.PHASE_NAME); } getLifecycleManager().fireLifecycle(phase); }
public boolean isDisposing() { return Disposable.PHASE_NAME.equals(lifecycleManager.getExecutingPhase()); }