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
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
// singleton
public IChatCoordinator buildChatCoordinator() {...}
@Scope(IOCConstants.PERTHREAD_SCOPE)
public IPerthredService buildPerthreadService(@Inject IOtherPerthredService)
{...}
---
// singleton
public class ChatCoordinator implements IChatCoordinator {
// for every call this metho