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
- 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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
protected void
protected final T
protected void
hookDelegate
(T delegate) protected boolean
protected final 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
-
Constructor Details
-
LifecycleHook
public LifecycleHook()
-
-
Method Details
-
getDelegate
-
setDelegate
-
delegateChanged
-
delegateEvent
-
delegateAboutToActivate
-
delegateActivated
-
delegateAboutToDeactivate
-
delegateDeactivated
-
doActivate
- Overrides:
doActivate
in classLifecycle
- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivate
in classLifecycle
- Throws:
Exception
-
hookDelegate
-
unhookDelegate
-
hookInactiveDelegates
protected boolean hookInactiveDelegates()
-