Where did you read about fields injection not being thread safe? It's definitely not true. Some developers like to use constructor injection because of better testing etc. personally I'm using mostly field injection.
Setter injection is just not implemented, IMHO IOC should support method injection when it's annotated with @Inject just like JSR-330 describes it. Denis Mar 20, 2012 v 10:01 AM, Ferran Maylinch: > Hello, > > Reading the documentation, I assume Tapestry does not perform setter > injection (like Spring). Also, I've read that @Inject directly into fields > is not thread-safe so constructor injection or build* methods are the > recommended ways. > > I wonder why Tapestry does not allow setter injection and thread-safe > @Inject if build* methods are already thread-safe (aren't they?). Setter > injection would be something similar: Tapestry would instantiate the > service and set dependencies before letting anyone use the service (as I > presume it does with build* methods). Field @Inject would be something > similar too. > > Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org