Leo Sutic wrote:
> 
> I agree completely.
> 
> In my summary, I define Type 1 and Type 2,3 components.
> 
> The Type 1 components are *always* thread safe. Always, always,
> always. You *never* *ever* get a factory.
> 
> Types 2 and 3 may or may not be threadsafe -> you *always* get
> a factory. If the impl is threadsafe you get a factory anyway!
> 
Ah, thanks for clarifying this - I think now I got it!

> Basically, the presence/absence of a factory is defined by the
> component interface. So if you code against the interface,
> you will *always* get it right. Just like now. The only difference is 
> that you will lookup() the factories in compose() and then use them
> instead of going to the ComponentManager.
> 
Ok, I understand this issue - but - sorry - I don't see the advantage.
In my opinion it gets more complicated as I first have to be aware
of this distinction and on the other hand the configuration gets more
complicated.

But I hope (fear?) that you all have discussed this over the last days.

Thanks,
Carsten

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

Reply via email to