org.apache.tapestry5.ioc.services

## 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addRegistryShutdownListener(RegistryShutdownListener listener)` Adds a listener for eventual notification.
    `void` | `addRegistryShutdownListener(Runnable listener)` Adds a listener for eventual notification when the registry shuts down.
    `void` | `addRegistryWillShutdownListener(Runnable listener)` Adds a listener for eventual notification.

- - ### Method Detail

    - #### addRegistryShutdownListener

          void addRegistryShutdownListener(RegistryShutdownListener listener)

      Adds a listener for eventual notification.

    - #### addRegistryShutdownListener

          void addRegistryShutdownListener(Runnable listener)

      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

          void addRegistryWillShutdownListener(Runnable listener)

      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

${project.version} - Copyright © 2003-2015 The Apache Software Foundation.