Hi all, I examined the shutdown mechanism of hivemind again. And the default behavior is somewhat different, than the documentation suggests:
1. from services.html#Service+Lifecycle: "A core service implementation may also implement the RegistryShutdownListener interface. When a Registry is shutdown, the registryDidShutdown() method is invoked on all services (and many other objects, such as proxies). The order in which these notifications occur is not defined. A service may release any resources it may hold at this time. It should not invoke methods on other service interfaces." 2. Javadoc of RegistryShutdownListener: "A core service implementation that implements this interface will automatically be registered for notifications (exception: not if the service uses the threaded service model)." This make me believe, that I only have to implement RegistryShutdownListener and I will automatically notified of the registry shutdown. I know that this is not true and additionally you have to add the core-service as an event-listener via the BuilderFactory. I think this is superfluos. The BuilderFactory (or any other Service-Construting Class) should automatically check for the presence of this interface and automatically register the core-service implementation for the corresponding events. This would be a very intuitive enhancement to hivemind and would correspond to the things the documentation suggests. Greetings, Christian Domsch Anwendungsentwickler > Entire Software AG > Lise-Meitner-Stra�e 14 > D-89081 Ulm > > Tel: +49 7 31 9 74 95-4 83 > Fax: +49 7 31 9 74 95-20 > Mailto:[EMAIL PROTECTED] > > http://www.entire.de > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
