Hi!

I guess you need a new service scope. Tapestry-IoC provides two out-of-the-box: singleton (default) and per-thread (one object created for each different thread). You can add a new lifecycle that always returns a new object. In Spring, this is called the prototype scope. http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/ioc/annotations/Scope.html will give you some hints about how to add new scopes.

A less elegant solution is to inject ObjectLocator and use its autobuild() method.

--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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

Reply via email to