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.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Constructor SummaryConstructors Constructor Description LifecycleHook()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 voiddoActivate()protected voiddoDeactivate()protected TgetDelegate()protected voidhookDelegate(T delegate)protected booleanhookInactiveDelegates()protected voidsetDelegate(T delegate)protected voidunhookDelegate(T delegate)- 
Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycleactivate, 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.NotifieraddListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getDelegateprotected final T getDelegate() 
 - 
setDelegateprotected final void setDelegate(T delegate) 
 - 
delegateAboutToActivateprotected void delegateAboutToActivate(T delegate) 
 - 
delegateActivatedprotected void delegateActivated(T delegate) 
 - 
delegateAboutToDeactivateprotected void delegateAboutToDeactivate(T delegate) 
 - 
delegateDeactivatedprotected void delegateDeactivated(T delegate) 
 - 
doActivateprotected void doActivate() throws java.lang.Exception- Overrides:
- doActivatein class- Lifecycle
- Throws:
- java.lang.Exception
 
 - 
doDeactivateprotected void doDeactivate() throws java.lang.Exception- Overrides:
- doDeactivatein class- Lifecycle
- Throws:
- java.lang.Exception
 
 - 
hookDelegateprotected void hookDelegate(T delegate) 
 - 
unhookDelegateprotected void unhookDelegate(T delegate) 
 - 
hookInactiveDelegatesprotected boolean hookInactiveDelegates() 
 
- 
 
-