On Tue, 20 Mar 2012 06:01:32 -0300, Ferran Maylinch <ferranmayli...@gmail.com> wrote:

Hello,

Hi!

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?).

You've already answered your own question one sentence before it: Tapestry-IoC recommends contructor injection. It has an additional advantage: your service classes work exactly the same way when you work with them without Tapestry-IoC. In other words, nobody felt the need to provide setter injection.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to