Class LifecycleHook<T extends ILifecycle>

All Implemented Interfaces:
INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation

public class LifecycleHook<T extends ILifecycle> extends Lifecycle
Since:
3.8
Author:
Eike Stepper
  • Constructor Details

    • LifecycleHook

      public LifecycleHook()
  • Method Details

    • getDelegate

      protected final T getDelegate()
    • setDelegate

      protected final void setDelegate(T delegate)
    • delegateChanged

      protected void delegateChanged(T oldDelegate, T newDelegate)
    • delegateEvent

      protected void delegateEvent(T delegate, IEvent event)
    • delegateAboutToActivate

      protected void delegateAboutToActivate(T delegate)
    • delegateActivated

      protected void delegateActivated(T delegate)
    • delegateAboutToDeactivate

      protected void delegateAboutToDeactivate(T delegate)
    • delegateDeactivated

      protected void delegateDeactivated(T delegate)
    • doActivate

      protected void doActivate() throws Exception
      Overrides:
      doActivate in class Lifecycle
      Throws:
      Exception
    • doDeactivate

      protected void doDeactivate() throws Exception
      Overrides:
      doDeactivate in class Lifecycle
      Throws:
      Exception
    • hookDelegate

      protected void hookDelegate(T delegate)
    • unhookDelegate

      protected void unhookDelegate(T delegate)
    • hookInactiveDelegates

      protected boolean hookInactiveDelegates()