On Wed, 12 Oct 2011 18:28:06 -0300, Tony Nelson <tnel...@starpoint.com>
wrote:
This particular service could have just as easily been a pojo. I'm
converting a tapestry4/spring application to tapestry5 and I'm trying to
leave spring behind. As a spring bean this object was simply declared
with scope="prototype" which gave me a new instance of the object every
time I accessed it.
Tapestry-IoC doesn't have a prototype scope out of the box, but it
shouldn't be hard: implement a ServiceLifecycle2 and contribute it to the
ServiceLifecycleSource service configuration. I've never tried that,
though.
--
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