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 have two distinct keys, hence role+hint must differ on them.
BTW, which plexus are you using? The "classic" (oldie) or the SISU-plexus-shim? Thanks, ~t~ On Tue, Aug 2, 2011 at 11:38 AM, <bernd.v...@bosch-si.com> wrote: > 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 > descriptors. > > Is there a way to gather all components of a specific role regardless of > their hints (and even if the hints are equal)? I'd like to use that to > realize some kind of whiteboard pattern. > > Regards, > Bernd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org > For additional commands, e-mail: dev-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org