The tadedon-guice-lifecycle could suit your needs: http://code.google.com/p/tadedon/source/browse/tadedon/tadedon-guice-lifecycle/src/test/java/com/xemantic/tadedon/guice/lifecycle/LifecycleManagerTest.java
On Tue, Sep 4, 2012 at 11:07 AM, Romain Gilles <[email protected]> wrote: > Hi all, > I would like to follow the best practices and in this case this one: > http://code.google.com/p/google-guice/wiki/ModulesShouldBeFastAndSideEffectFree > Therefore I'm looking for something like the JSR-250 annotations management: > @PostConstruct and @PreDestroy > I have found it in the project https://code.google.com/p/guiceyfruit/ but > the implementation solution seams to be different for the one proposed in > the best practice. > In guiceyfruit I'm not sure that the PostConstruct method are called after > injector creation. > I have see something similar in http://code.google.com/p/peaberry/ with the > lifecycle management through @Start and @Stop but it is not using the > standard annotations. > > Can you help me? > > Romain > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-guice/-/wDJna0jVfcoJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. -- Kazik 'morisil' Pogoda http://memy.xemantic.com/ http://blog.xemantic.com/ -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
