Re: get perthread_scope service from singleton_scope service

2008-04-09 Thread Howard Lewis Ship
Well, if you inject a perthread-scoped service into a normal (singleton) service, you'll get the proxy. Invoking methods on the proxy will create the per-thread instance "behind the scenes", which may be what you want. On the other hand, you may be using something I tend to call a "process object

Antwort: get perthread_scope service from singleton_scope service

2008-04-08 Thread Kristian Marinkovic
pass in a factory service to your ChatCoordinator that will return a new instance on every invocation (eg. create()) g kris Foror <[EMAIL PROTECTED]> 09.04.2008 06:08 Bitte antworten an "Tapestry users" An Tapestry users Kopie Thema get perthread_scope service from

get perthread_scope service from singleton_scope service

2008-04-08 Thread Foror
// singleton public IChatCoordinator buildChatCoordinator() {...} @Scope(IOCConstants.PERTHREAD_SCOPE) public IPerthredService buildPerthreadService(@Inject IOtherPerthredService) {...} --- // singleton public class ChatCoordinator implements IChatCoordinator { // for every call this metho