Package org.eclipse.net4j.util.lifecycle
Class LifecycleHook<T extends ILifecycle>
- java.lang.Object
-
- org.eclipse.net4j.util.event.Notifier
-
- org.eclipse.net4j.util.lifecycle.Lifecycle
-
- org.eclipse.net4j.util.lifecycle.LifecycleHook<T>
-
- All Implemented Interfaces:
INotifier
,INotifier.INotifier2
,IDeactivateable
,ILifecycle
,ILifecycle.DeferrableActivation
public class LifecycleHook<T extends ILifecycle> extends Lifecycle
- Since:
- 3.8
- Author:
- Eike Stepper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
-
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
-
Constructor Summary
Constructors Constructor Description LifecycleHook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
delegateAboutToActivate(T delegate)
protected void
delegateAboutToDeactivate(T delegate)
protected void
delegateActivated(T delegate)
protected void
delegateChanged(T oldDelegate, T newDelegate)
protected void
delegateDeactivated(T delegate)
protected void
delegateEvent(T delegate, IEvent event)
protected void
doActivate()
protected void
doDeactivate()
protected T
getDelegate()
protected void
hookDelegate(T delegate)
protected boolean
hookInactiveDelegates()
protected void
setDelegate(T delegate)
protected void
unhookDelegate(T delegate)
-
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
-
Methods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getDelegate
protected final T getDelegate()
-
setDelegate
protected final void setDelegate(T delegate)
-
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 java.lang.Exception
- Overrides:
doActivate
in classLifecycle
- Throws:
java.lang.Exception
-
doDeactivate
protected void doDeactivate() throws java.lang.Exception
- Overrides:
doDeactivate
in classLifecycle
- Throws:
java.lang.Exception
-
hookDelegate
protected void hookDelegate(T delegate)
-
unhookDelegate
protected void unhookDelegate(T delegate)
-
hookInactiveDelegates
protected boolean hookInactiveDelegates()
-
-