Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1359

Add way to be notified that the Registry is about to shutdown (but before service proxies are disabled)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3, 5.2.4
    • 5.3
    • tapestry-ioc
    • None

    Description

      It is impossible to inject a service into a handler of 'RegistryShutdownListener .registryDidShutdown' since the registry is already shutdown at this point. this makes it difficult to perform some more intricate termination logic when multiple services need to collude.

      I propose the inclusion of a new interface 'RegistryAboutToShutdownListener' with the method 'registryAboutToShutDown'.

      In the case of a tapestry application, it would need to be called after Http requests have been disallowed, but before the registry becomes unusable.

      There may need to be some ordered configuration to control service dependencies as they shut down, and I expect some other considerations I haven't thought of....

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            paul.stanton Paul Stanton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: