org.apache.hivemind.events
Interface RegistryShutdownListener

All Superinterfaces:
java.util.EventListener

public interface RegistryShutdownListener
extends java.util.EventListener

Lifecycle interface that may be implemented by objects that need to know when the 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

Method Summary
 void registryDidShutdown()
          Invoked when a service is being shutdown, and should release any external resources.
 

Method Detail

registryDidShutdown

void registryDidShutdown()
Invoked when a service is being shutdown, and should release any external resources. A service should not attempt to use any resources or configurations, doing so may result in a runtime exception.



Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.