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.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.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 org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringMethods inherited from class org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
doActivatein classLifecycle- Throws:
Exception
-
doDeactivate
- Overrides:
doDeactivatein classLifecycle- Throws:
Exception
-
hookDelegate
-
unhookDelegate
-
hookInactiveDelegates
protected boolean hookInactiveDelegates()
-