I'm looking for a method so each proxy delegates to it's own instance which is unique to that proxy....

Ultimately what I'm trying to do is create a service-point which vends out a proxy to an instance so I can create an interceptor on the proxy to implement some of the methods from the interface and pass other method calls to the instance wrapped in the proxy...

Has anybody done something similar?

-Aj

James Carman wrote:
You can use the "threaded" model. That would give you a unique instance for each thread (or web request if you're writing a webapp). HiveMind doesn't really inject the implementation object into other objects. It injects a proxy. The proxy will make sure it delegates to the appropriate implementation object based on the service lifecycle model.

On 10/20/06, *Aj Gregory* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Is there some way to create a service-point so it will create a new
    instance of an implementation class each time the service is injected
    somewhere?  Kinda the exact opposite of singleton.

    Thanks,
    -Aj


Reply via email to