Re: Configuring a dynamically selected component

2009-08-11 Thread Jochen Wiedmann
On Wed, Aug 12, 2009 at 2:59 AM, Jason van Zyl wrote: > For Maven 2.x you'll be interested in this: > > http://svn.codehaus.org/plexus/plexus-containers/branches/PLX-343-plexus-container-default-1.0-alpha-9-stable-1/src/main/java/org/codehaus/plexus/component/configurator/ Thanks, I'll take a loo

Re: Configuring a dynamically selected component

2009-08-11 Thread Jason van Zyl
On 11-Aug-09, at 7:37 AM, Jochen Wiedmann wrote: On Tue, Aug 11, 2009 at 12:13 PM, Jason van Zyl wrote: Brian semi-abused the configuration mechanism to achieve what he wanted. But he did get it to work :-) We'll devise something that uses the components for 3.x but what's happening is t

Re: Configuring a dynamically selected component

2009-08-11 Thread Jochen Wiedmann
On Tue, Aug 11, 2009 at 12:13 PM, Jason van Zyl wrote: > Brian semi-abused the configuration mechanism to achieve what he wanted. But > he did get it to work :-) We'll devise something that uses the components > for 3.x but what's happening is that configuration elements translate into > classes i

Re: Configuring a dynamically selected component

2009-08-11 Thread Jason van Zyl
On 11-Aug-09, at 1:27 AM, Jochen Wiedmann wrote: On Tue, Aug 11, 2009 at 6:01 AM, Jason van Zyl wrote: Look at the enforcer plugin. As each rule is a component that gets configured. Thanks once more. I have checked the sources of the enforcer and it sounds *exactly* like what I am looking f

Re: Configuring a dynamically selected component

2009-08-11 Thread Jochen Wiedmann
On Tue, Aug 11, 2009 at 6:01 AM, Jason van Zyl wrote: > Look at the enforcer plugin. As each rule is a component that gets > configured. Thanks once more. I have checked the sources of the enforcer and it sounds *exactly* like what I am looking for. However, I haven't got the slightest idea how it

Re: Configuring a dynamically selected component

2009-08-10 Thread Jason van Zyl
Look at the enforcer plugin. As each rule is a component that gets configured. On 10-Aug-09, at 8:54 PM, Jochen Wiedmann wrote: Hi, Jason, thanks for your reply. That will at least help me to get a working solution. However, I am not quite sure whether I expressed myself right. Sorry, if not

Re: Configuring a dynamically selected component

2009-08-10 Thread Jochen Wiedmann
Hi, Jason, thanks for your reply. That will at least help me to get a working solution. However, I am not quite sure whether I expressed myself right. Sorry, if not. My ideal solution would be to have something like myPlugin

Re: Configuring a dynamically selected component

2009-08-10 Thread Jason van Zyl
On 10-Aug-09, at 1:32 PM, Jochen Wiedmann wrote: Hi, in a plugin, I'd like to select a component dynamically. Basically, I'd like to have something along these lines: ... The idea is to use the hint for looking up the "myComponent" bean and use the XML fragment be

Configuring a dynamically selected component

2009-08-10 Thread Jochen Wiedmann
Hi, in a plugin, I'd like to select a component dynamically. Basically, I'd like to have something along these lines: ... The idea is to use the hint for looking up the "myComponent" bean and use the XML fragment between and to configure the bean. Is that poss