public interface ILifecycle extends IDeactivateable, INotifier
lifecycle
and can be activated
or
deactivated
.
A lifecycle can fire the following events:
ILifecycleEvent
before and after the state
of this lifecycle changes.
Modifier and Type | Interface and Description |
---|---|
static interface |
ILifecycle.DeferrableActivation
A mix-in interface for
lifecycles with deferrable activation. |
Modifier and Type | Method and Description |
---|---|
void |
activate() |
Exception |
deactivate() |
LifecycleState |
getLifecycleState() |
boolean |
isActive() |
addListener, getListeners, hasListeners, removeListener
void activate() throws LifecycleException
LifecycleException
Exception deactivate()
deactivate
in interface IDeactivateable
LifecycleState getLifecycleState()
boolean isActive()
Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.