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>
- Type Parameters:
T- the element type
- All Implemented Interfaces:
INotifier, INotifier.INotifier2, IDeactivateable, ILifecycle, ILifecycle.DeferrableActivation
- Since:
- 3.8
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class Notifier
Notifier.CancelationNested classes/interfaces inherited from interface ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddelegateAboutToActivate(T delegate) protected voiddelegateAboutToDeactivate(T delegate) protected voiddelegateActivated(T delegate) protected voiddelegateChanged(T oldDelegate, T newDelegate) protected voiddelegateDeactivated(T delegate) protected voiddelegateEvent(T delegate, IEvent event) protected voidprotected voidprotected final Tprotected voidhookDelegate(T delegate) protected booleanprotected final voidsetDelegate(T delegate) protected voidunhookDelegate(T delegate) Methods inherited from class Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, doCancelActivation, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListener
-
Constructor Details
-
LifecycleHook
public LifecycleHook()
-
-
Method Details
-
getDelegate
-
setDelegate
-
delegateChanged
-
delegateEvent
-
delegateAboutToActivate
-
delegateActivated
-
delegateAboutToDeactivate
-
delegateDeactivated
-
doActivate
- Overrides:
doActivatein classLifecycle- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivatein classLifecycle- Throws:
Exception
-
hookDelegate
-
unhookDelegate
-
hookInactiveDelegates
protected boolean hookInactiveDelegates()
-