@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(HK2Module module)
Callback when the module enters the
READY state. |
void |
stop(HK2Module module)
Callback before the module starts being unloaded.
|
Copyright © 2009–2022 Oracle Corporation. All rights reserved.