Interface ILifecycle
- All Superinterfaces:
IDeactivateable, INotifier
- All Known Subinterfaces:
IManagedContainer, IPluginContainer
- All Known Implementing Classes:
org.eclipse.net4j.internal.util.bundle.AbstractManagedContainer, Cache, CacheMonitor, ChallengeNegotiator, ChallengeResponseNegotiator, Container, ContainerElementList, DelegableReentrantLock, DelegatingRegistry, ExecutorWorkSerializer, FileUserManager, FiniteStateMachine, HashMapDelegatingRegistry, HashMapRegistry, HashMapRegistry.AutoCommit, Lifecycle, LifecycleHook, ListContainer, ManagedContainer, ModifiableContainer, Negotiator, PersistableContainer, PriorityQueueRunner, QueueRunner, QueueRunner2, QueueWorker, QueueWorkerWorkSerializer, Randomizer, ReferenceMonitor, ReferenceQueueWorker, Registry, ResponseNegotiator, RollingLog, RWLockManager, RWOLockManager, ScopedRegistry, SerializingExecutor, SetContainer, ShareableLifecycle, TimerLifecycle, UIQueueRunner, UserManager, UserManagerAuthenticator, Worker
An entity that has a well-defined
lifecycle and can be activated or
deactivated.
A lifecycle can fire the following events:
-
ILifecycleEventbefore and after thestateof this lifecycle changes.
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA mix-in interface forlifecycleswith deferrable activation.Nested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Method Summary
Methods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
activate
- Throws:
LifecycleException
-
deactivate
Exception deactivate()- Specified by:
deactivatein interfaceIDeactivateable
-
getLifecycleState
LifecycleState getLifecycleState()- Since:
- 3.0
-
isActive
boolean isActive()- Since:
- 3.0
-