-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
Hi,
after using Guice for a few weeks, to my surprise today I discovered that Guice has no support for fundamental lifecycle callbacks like @PostConstruct, and there is no intention to add it #62 (comment)
As @PostConstruct is a critical feature when you do field/set injection (no constructor injection), I am now in the situation to be forced to switch to another DI framework (likely Spring or CDI Weld), as Guice's workarounds are far too verbose or error prone (eg, InjectionListener or constructor injection).
It would be great if the documentation of Guice could be updated to clearly state that @PostConstructor is and will not be supported, eg a section called "No Lifecycle Support" under https://github.com/google/guice/wiki/Bindings
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels