Class RegistryShutdownHubImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.services.RegistryShutdownHubImpl
-
- All Implemented Interfaces:
RegistryShutdownHub
public class RegistryShutdownHubImpl extends java.lang.Object implements RegistryShutdownHub
-
-
Constructor Summary
Constructors Constructor Description RegistryShutdownHubImpl(org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRegistryShutdownListener(java.lang.Runnable listener)Adds a listener for eventual notification when the registry shuts down.voidaddRegistryShutdownListener(RegistryShutdownListener listener)Adds a listener for eventual notification.voidaddRegistryWillShutdownListener(java.lang.Runnable listener)Adds a listener for eventual notification.voidfireRegistryDidShutdown()Fires theRegistryShutdownListener.registryDidShutdown()method on each listener.
-
-
-
Constructor Detail
-
RegistryShutdownHubImpl
public RegistryShutdownHubImpl(org.slf4j.Logger logger)
-
-
Method Detail
-
addRegistryShutdownListener
public void addRegistryShutdownListener(RegistryShutdownListener listener)
Description copied from interface:RegistryShutdownHubAdds a listener for eventual notification.- Specified by:
addRegistryShutdownListenerin interfaceRegistryShutdownHub
-
addRegistryShutdownListener
public void addRegistryShutdownListener(java.lang.Runnable listener)
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
public void addRegistryWillShutdownListener(java.lang.Runnable listener)
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
public void fireRegistryDidShutdown()
Fires theRegistryShutdownListener.registryDidShutdown()method on each listener. At the end, all the listeners are discarded.
-
-