Correct.  The singleton service's implementation will receive a proxy
(implementing the service interface of the threaded service) which delegates
to a thread-local implementation object instance.

-----Original Message-----
From: Hensley, Richard [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 17, 2005 11:57 AM
To: [email protected]
Subject: RE: Injecting a threaded service into a singleton service

If I understand your question correctly, the following will occur:

There will on be one instance of the singleton service. 

There will be an instance per thread for the threaded service.

Richard

-----Original Message-----
From: Diego [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 17, 2005 8:41 AM
To: [email protected]
Subject: Injecting a threaded service into a singleton service

Hello,

Is this correct: If I injecting a threaded service into a singleton
service there will be only 1 service instance create for the threaded
service?

Regards,
Diego

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to