Lifecycle interface that may be implemented by objects
that need to know when the
org.apache.hivemind.Registry has shutdown. Typically, this is implemented by core service implementations
(as well as many proxies created by HiveMind).
A core service implementation that implements this interface will
automatically be registered for notifications (exception: not if the service
uses the threaded service model).
Using this notification is
preferrable to implementing a finalize() since it will be invoked
at a known time.
The order in which listeners will be invoked is
not well known. In the future, some form of dependency system may
be instituted.
author: Howard Lewis Ship |