public interface Activation
Application and Layer expose this interface so you can activate and passivate them.
Module and ServiceComposite activation/passivation is handled by the Polygene runtime.
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate.
|
void |
passivate()
Passivate.
|
void activate() throws ActivationException
Fail fast execution order is:
ActivationEvent.EventType.ACTIVATING
Activator.beforeActivation(java.lang.Object)
on each Activatoractivate()
childrenActivator.afterActivation(java.lang.Object)
on each ActivatorActivationEvent.EventType.ACTIVATED
If an Exception is thrown, already activated nodes are passivated.
ActivationException
- with first Exception of activation plus the PassivationException if anyvoid passivate() throws PassivationException
Fail safe execution order is:
ActivationEvent.EventType.PASSIVATING
Activator.beforePassivation(java.lang.Object)
on each Activatorpassivate()
childrenActivator.afterPassivation(java.lang.Object)
on each ActivatorActivationEvent.EventType.PASSIVATED
PassivationException
- after passivation with all Exceptions of passivation if any