|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@Contract public interface LifecyclePolicy
Modules that wish to invoke special logic when it is loaded, started or stopped should implement this interface.
To define an implementation of this in a module, write a class
that implements this interface and puts Service on it.
Maven will take care of the rest.
ManifestConstants.LIFECYLE_POLICY| Method Summary | |
|---|---|
void |
start(Module module)
Callback when the module enters the READY state. |
void |
stop(Module module)
Callback before the module starts being unloaded. |
| Method Detail |
|---|
void start(Module module)
READY state.
This is a good time to do any type of one time initialization
or set up access to resources
module - the module instancevoid stop(Module module)
NEW state.
module - the module instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||