AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Bernd.Vogt
...@free.fr] Gesendet: Dienstag, 2. August 2011 19:44 An: Maven Developers List Betreff: Re: AW: PlexusContainer#lookupList(role) returns only one component I recently used lookupMap API [1] to detect which wagon providers was available in m-site-p 3.0 It worked like a charm Regards

Re: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Mark Struberg
: PlexusContainer#lookupList(role) returns only one component To: dev@maven.apache.org Date: Wednesday, August 3, 2011, 6:22 AM Sadly, this doesn't work for my case. I have several components with exactly the same role and hint, e.g. role=IFooListener.class, hint=default. Using lookupMap returns a map

AW: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Bernd.Vogt
Developers List Betreff: Re: AW: AW: PlexusContainer#lookupList(role) returns only one component If you like to distinguish them, what JSR-330 mechanism do you use? Qualifiers? There must be a precedence rule somehow... LieGrue, strub --- On Wed, 8/3/11, bernd.v...@bosch-si.com bernd.v

Re: AW: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Mark Struberg
Nachricht- Von: Mark Struberg [mailto:strub...@yahoo.de] Gesendet: Mittwoch, 3. August 2011 10:56 An: Maven Developers List Betreff: Re: AW: AW: PlexusContainer#lookupList(role) returns only one component If you like to distinguish them, what JSR-330 mechanism do you use? Qualifiers

Re: AW: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Mark Struberg
Nachricht- Von: Mark Struberg [mailto:strub...@yahoo.de] Gesendet: Mittwoch, 3. August 2011 10:56 An: Maven Developers List Betreff: Re: AW: AW: PlexusContainer#lookupList(role) returns only one component If you like to distinguish them, what JSR-330 mechanism do you use? Qualifiers

Re: AW: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Igor Fedorenko
] Gesendet: Mittwoch, 3. August 2011 10:56 An: Maven Developers List Betreff: Re: AW: AW: PlexusContainer#lookupList(role) returns only one component If you like to distinguish them, what JSR-330 mechanism do you use? Qualifiers? There must be a precedence rule somehow... LieGrue, strub --- On Wed, 8/3

AW: AW: AW: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-03 Thread Bernd.Vogt
). -Ursprüngliche Nachricht- Von: Igor Fedorenko [mailto:i...@ifedorenko.com] Gesendet: Mittwoch, 3. August 2011 11:46 An: dev@maven.apache.org Betreff: Re: AW: AW: AW: PlexusContainer#lookupList(role) returns only one component Wouldn't it be easier to use fully qualified

PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
Hello Everybody, I just noticed that PlexusContainer#lookupList(role) will only return a list with one component even there are two components available for the role. After playing around I figured out that the method returns a list with both components when I use different hints in my component

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Tamás Cservenák
In plexus role+hint forms a composite key. In your case, you had a component conflict, and Plexus stashed one component over another (it's undefined which wins, but probably depends on classpath ordering or so). If you want Plexus to manage them as two distinct components, you have to make them

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
I'm using the SISU-plexus-shim (sisu-inject-plexus-2.1.1). In plexus role+hint forms a composite key. In your case, you had a component conflict, and Plexus stashed one component over another (it's undefined which wins, but probably depends on classpath ordering or so). Sure, I expected this

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Tamás Cservenák
Inline. On Tue, Aug 2, 2011 at 12:05 PM, bernd.v...@bosch-si.com wrote: In plexus role+hint forms a composite key. In your case, you had a component conflict, and Plexus stashed one component over another (it's undefined which wins, but probably depends on classpath ordering or so). Sure,

Re: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Mark Struberg
: Re: PlexusContainer#lookupList(role) returns only one component To: Maven Developers List dev@maven.apache.org Date: Tuesday, August 2, 2011, 10:52 AM Inline. On Tue, Aug 2, 2011 at 12:05 PM,  bernd.v...@bosch-si.com wrote: In plexus role+hint forms a composite key. In your case, you had

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
It might be a safe route to use JSR-330 only, but it's still not guaranteed. Currently, I'm trying to figure out how I can use (and possibly mix up) sisu-plexus with plain JSR-330 components.. any hints? The thing is, that the IoC container of the environment I'm running in is sisu-plexus and

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Mark Struberg
still be the plexus way. LieGrue, strub --- On Tue, 8/2/11, bernd.v...@bosch-si.com bernd.v...@bosch-si.com wrote: From: bernd.v...@bosch-si.com bernd.v...@bosch-si.com Subject: AW: PlexusContainer#lookupList(role) returns only one component To: dev@maven.apache.org Date: Tuesday, August 2

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Stuart McCulloch
On 2 Aug 2011, at 13:33, bernd.v...@bosch-si.com wrote: It might be a safe route to use JSR-330 only, but it's still not guaranteed. Currently, I'm trying to figure out how I can use (and possibly mix up) sisu-plexus with plain JSR-330 components.. any hints? The thing is, that the IoC

AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Bernd.Vogt
BTW, which environment are you running in? Maven 3.0.3 :-) Currently, I'm developing a Maven Core extension (see apache-maven-3.0.3/lib/ext/README.txt) that extends Maven with an extensible generator framework that is intended to generate Maven poms and other artifacts for non-Maven projects

Re: AW: PlexusContainer#lookupList(role) returns only one component

2011-08-02 Thread Hervé BOUTEMY
I recently used lookupMap API [1] to detect which wagon providers was available in m-site-p 3.0 It worked like a charm Regards, Hervé [1] http://plexus.codehaus.org/plexus-containers/plexus-container- default/apidocs/org/codehaus/plexus/PlexusContainer.html#lookupMap(java.lang.Class) Le mardi