----- Original Message ----- 
From: "Peter Royal" <[EMAIL PROTECTED]>
To: "Avalon framework users" <[EMAIL PROTECTED]>
Sent: Tuesday, October 22, 2002 5:40 PM
Subject: Re: Multiple instances with different parameters


> On Tuesday, October 22, 2002, at 10:59  AM, Vjeran Marcinko wrote:

> You have a group of components, lets call them Group A. Each one of 
> them requires a component of type B to do its job. Each component in 
> Group A will require its own component of type B, 
> configured(parameterized) for its specific needs. Yes?

Exactly.

> I would recommend using the ComponentSelector. Type B is really a Role, 
> and you have multiple components that fulfill that role (even if its 
> the same java class, they are configured differently).
> 
> Components in Group A would then do a lookup() which will return a 
> ComponentSelector interface. From that interface you will then be able 
> to select which specific 'Type B' component you wish to use.

I never have taken a look at selectors, so I'm gonna do it now....
Thanx.

-Vjeran



--
To unsubscribe, e-mail:   <mailto:avalon-users-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-users-help@;jakarta.apache.org>

Reply via email to