@Contract public interface LifecyclePolicy
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
Modifier and Type | Method and Description |
---|---|
void |
start(Module module)
Callback when the module enters the
READY state. |
void |
stop(Module module)
Callback before the module starts being unloaded.
|
Copyright © 2009–2023 Oracle Corporation. All rights reserved.