org.eclipse.net4j.util.lifecycle
Interface ILifecycle

All Superinterfaces:
INotifier
All Known Subinterfaces:
IManagedContainer, IPluginContainer
All Known Implementing Classes:
Cache, CacheMonitor, ChallengeNegotiator, ChallengeResponseNegotiator, Container, DelegatingRegistry, FileUserManager, FiniteStateMachine, HashMapDelegatingRegistry, HashMapRegistry, Lifecycle, ManagedContainer, Negotiator, QueueRunner, QueueWorker, QueueWorkerWorkSerializer, Randomizer, ReferenceQueueWorker, Registry, ResponseNegotiator, RWLockManager, RWOLockManager, SetContainer, TimerLifecycle, UIQueueRunner, UserManager, Worker

public interface ILifecycle
extends INotifier

An entity that has a well-defined lifecycle and can be activated or deactivated.

A lifecycle can fire the following events:


Nested Class Summary
static interface ILifecycle.DeferrableActivation
          A mix-in interface for lifecycles with deferrable activation.
 
Method Summary
 void activate()
           
 Exception deactivate()
           
 LifecycleState getLifecycleState()
           
 boolean isActive()
           
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Method Detail

activate

void activate()
              throws LifecycleException
Throws:
LifecycleException

deactivate

Exception deactivate()

getLifecycleState

LifecycleState getLifecycleState()
Since:
3.0

isActive

boolean isActive()
Since:
3.0


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.