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.ACTIVATINGActivator.beforeActivation(java.lang.Object) on each Activatoractivate() childrenActivator.afterActivation(java.lang.Object) on each ActivatorActivationEvent.EventType.ACTIVATEDIf 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.PASSIVATINGActivator.beforePassivation(java.lang.Object) on each Activatorpassivate() childrenActivator.afterPassivation(java.lang.Object) on each ActivatorActivationEvent.EventType.PASSIVATEDPassivationException - after passivation with all Exceptions of passivation if any