Package com.sun.enterprise.module
Interface LifecyclePolicy
-
@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.- See Also:
ManifestConstants.LIFECYLE_POLICY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
start(Module module)
Callback when the module enters theREADY
state.void
stop(Module module)
Callback before the module starts being unloaded.
-