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

2011-08-03 Thread Bernd.Vogt
callers and for extenders). > -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 >

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

2011-08-03 Thread Igor Fedorenko
Wouldn't it be easier to use fully qualified implementation class name as component hint? This will even allow stable invocation order if components are ordered by hint. Maybe not the cleanest approach from design pureness point of view, should work for "listener" usecase well enough. -- Regards,

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

2011-08-03 Thread Mark Struberg
/javase/6/docs/api/java/util/ServiceLoader.html [2] http://download.oracle.com/javaee/6/api/javax/inject/package-summary.html --- On Wed, 8/3/11, bernd.v...@bosch-si.com wrote: > From: bernd.v...@bosch-si.com > Subject: AW: AW: AW: PlexusContainer#lookupList(role) returns only one > compo

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

2011-08-03 Thread Mark Struberg
/javase/6/docs/api/java/util/ServiceLoader.html [2] http://download.oracle.com/javaee/6/api/javax/inject/package-summary.html --- On Wed, 8/3/11, bernd.v...@bosch-si.com wrote: > From: bernd.v...@bosch-si.com > Subject: AW: AW: AW: PlexusContainer#lookupList(role) returns only one > compo

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

2011-08-03 Thread Bernd.Vogt
In my case there is no need to distinguish them. I just want to look up for all components of a specific type and call a method on each found component, e.g. the type is a listener interface and I want to notify all registered listeners that sth. has happened (see whiteboard patter in OSGi). Fo