|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface InhabitantActivator
Contract for handling the activation and releasing of an inhabitant. Useful when the inhabitant needs to be activated in a particular thread context for example.
RunLevelService| Method Summary | |
|---|---|
void |
activate(Inhabitant<?> inhabitant)
Implementations are generally expected to call Inhabitant.get() at
some point. |
void |
deactivate(Inhabitant<?> inhabitant)
Implementations are generally expected to call Inhabitant.release() at
some point. |
| Method Detail |
|---|
void activate(Inhabitant<?> inhabitant)
Inhabitant.get() at
some point.
The DefaultRunLevelService calls activate for all Inhabitants qualifying
in the activated RunLevel regardless of whether or not they need activation.
inhabitant - the inhabitant to activatevoid deactivate(Inhabitant<?> inhabitant)
Inhabitant.release() at
some point.
The DefaultRunLevelService calls deactivate for all Inhabitants qualifying
in the activated RunLevel regardless of whether or not they need releasing.
inhabitant - the inhabitant to release
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||