Grepping through the sources, I don't see any way of shutting down the injector
and specifying methods to run when an object should be destroyed, such as using
Spring's destroy-method on a bean.
JDK6 does have a javax.annotation.PreDestroy annotation that could be
potentially used for this.
Are there any plans for this in Guice?
Thanks,
Blair
--
Blair Zajac, Ph.D.
CTO, OrcaWare Technologies
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/
I'm looking at using Guice for my application and want the ability to shutdown
all threads, remove JDBC drivers registered with java.sql.DriverManager, and
clean up any other resources so I can properly redeploy the application in a
servlet container.
Grepping through the sources, I don't see any way of shutting down the injector
and specifying methods to run when an object should be destroyed, such as using
Spring's destroy-method on a bean.
JDK6 does have a javax.annotation.PreDestroy annotation that could be
potentially used for this.
Are there any plans for this in Guice?
Stuart,
Thanks for pointing that issue out, I added a comment to it.
Regards,
Blair