> From: Stephen McConnell [mailto:[EMAIL PROTECTED]]
>
>       I would prefer an approach
>       where the service manager implementation could locate a pool
>       provider (handler) based on the type of object that is returned.

Impossible. Consider a component, my.ComponentImpl, that implements
my.Component
and is pooled.

Now consider the two roles my.Component/B and my.Component/A.

Since the two roles have different configurations they are not equivalent.

When you get a my.ComponentImpl back you have to put it in the right pool,
but the type information is not enough.

The same goes for instances selected via a Selector.

/LS


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

Reply via email to