Top Description Methods
com.sun.enterprise.module

public Interface LifecyclePolicy

Annotations
@Contract
Imports
org.jvnet.hk2.annotations.Contract, .Service

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.

Author
dochez
See Also
ManifestConstants#LIFECYLE_POLICY

Method Summary

Modifier and TypeMethod and Description
public void
start(HK2Module
the module instance
module
)

Callback when the module enters the READY state.

public void
stop(HK2Module
the module instance
module
)

Callback before the module starts being unloaded.

Method Detail

startback to summary
public void start(HK2Module module)

Callback when the module enters the READY state. This is a good time to do any type of one time initialization or set up access to resources

Parameters
module:HK2Module

the module instance

stopback to summary
public void stop(HK2Module module)

Callback before the module starts being unloaded. The runtime will free all the module resources and returned to a NEW state.

Parameters
module:HK2Module

the module instance