Interface RegistryShutdownHub
- All Known Subinterfaces:
InternalRegistry
- All Known Implementing Classes:
RegistryImpl
,RegistryShutdownHubImpl
public interface RegistryShutdownHub
Event hub for notifications when the IOC
Registry
shuts down.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRegistryShutdownListener
(Runnable listener) Adds a listener for eventual notification when the registry shuts down.void
Adds a listener for eventual notification.void
addRegistryWillShutdownListener
(Runnable listener) Adds a listener for eventual notification.
-
Method Details
-
addRegistryShutdownListener
Adds a listener for eventual notification. -
addRegistryShutdownListener
Adds a listener for eventual notification when the registry shuts down. Runtime exceptions thrown by the listener will be logged and ignored.- Since:
- 5.3
-
addRegistryWillShutdownListener
Adds 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.- Since:
- 5.3
-