Package com.sun.jini.start
Interface LifeCycle
public interface LifeCycle
The interface used to manage the lifecycle of shared, non-activatable services started by the
service starter. Services started via a
NonActivatableServiceDescriptor get passed a reference to a
LifeCycle object, which can be used by the server to inform the hosting environment
that it can release any resources associated with the server (presumably because the server is
terminating).- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanunregister(Object impl) Method invoked by a server to inform theLifeCycleobject that it can release any resources associated with the server.
-
Method Details
-
unregister
Method invoked by a server to inform theLifeCycleobject that it can release any resources associated with the server.- Parameters:
impl- Object reference to the implementation object created by theNonActivatableServiceDescriptor. This reference must be equal, in the "==" sense, to the object created by theNonActivatableServiceDescriptor.- Returns:
- true if the invocation was successfully processed and false otherwise.
-