bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Lifecycle Annotations #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Not sure if this has been suggested before but it would be useful to have a
Post Injection (@PostInject) annotation to kickoff task after the whole
injection process has completed.  This would be equivalent to the
default-init-method option in spring or the InitializingBean.

If you did this then a destroy option would be useful as well, but not as
much as the init.  

Original issue reported on code.google.com by bcramm...@gmail.com on 29 Jul 2007 at 9:42

GoogleCodeExporter commented 9 years ago
Duplicate of issue #62

Original comment by sven.lin...@gmail.com on 5 Jun 2008 at 8:51

GoogleCodeExporter commented 9 years ago
You can also just use an @Inject method to do post-inject initialization!

Original comment by limpbizkit on 9 Jun 2008 at 6:36