Exemplo n.º 1
0
 @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);
 }
Exemplo n.º 2
0
 public boolean isDisposing() {
   return Disposable.PHASE_NAME.equals(lifecycleManager.getExecutingPhase());
 }