On Thu, 03 Jul 2014 12:33:40 -0300, Jochen Kemnade
<jochen.kemn...@eddyson.de> wrote:
Hi,
Hi!
since Tapestry 5.3, there's
RegistryShutdownHub.addRegistryWillShutdownListener(Runnable). The
JavaDoc says "RegistryWillShutdownListeners are notified before any
standard listeners, and before service proxies and other parts of the
Registry are disabled.". However, the Registry Lock is locked before
the RegistryWillShutdownListeners are notified, so it's not possible to
acquire services in a RegistryWillShutdownListener.
The main reason I see for RegistryWillShutdownListeners is to perform
final cleanup tasks before the Registry goes down and I think the
registry should be fully functional at that point. Or wasn't that the
original intention?
I'd guess the original intention is having the services themselves or
their build methods to invoke their shutdown code, not having something
else grab the services and then call their shutdown methods.
But that's just a guess. :)
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
For additional commands, e-mail: dev-h...@tapestry.apache.org