Class RegistryShutdownHubImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.RegistryShutdownHubImpl
- All Implemented Interfaces:
RegistryShutdownHub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegistryShutdownListener(Runnable listener) Adds a listener for eventual notification when the registry shuts down.voidAdds a listener for eventual notification.voidaddRegistryWillShutdownListener(Runnable listener) Adds a listener for eventual notification.voidFires theRegistryShutdownListener.registryDidShutdown()method on each listener.
-
Constructor Details
-
RegistryShutdownHubImpl
-
-
Method Details
-
addRegistryShutdownListener
Description copied from interface:RegistryShutdownHubAdds a listener for eventual notification.- Specified by:
addRegistryShutdownListenerin interfaceRegistryShutdownHub
-
addRegistryShutdownListener
Description copied from interface:RegistryShutdownHubAdds a listener for eventual notification when the registry shuts down. Runtime exceptions thrown by the listener will be logged and ignored.- Specified by:
addRegistryShutdownListenerin interfaceRegistryShutdownHub
-
addRegistryWillShutdownListener
Description copied from interface:RegistryShutdownHubAdds a listener for eventual notification. RegistryWillShutdownListeners are notified before any standard listeners, and before service proxies and other parts of the Registry are disabled. Runtime exceptions thrown by the listener will be logged and ignored.- Specified by:
addRegistryWillShutdownListenerin interfaceRegistryShutdownHub
-
fireRegistryDidShutdown
Fires theRegistryShutdownListener.registryDidShutdown()method on each listener. At the end, all the listeners are discarded.
-