that was my point: for Plexus annotations, @Component is on the component itself (I mean org.codehaus.plexus.component.annotations.Component [1])
but for Maven Plugin Tools, @Component is on the injection point (org.apache.maven.plugins.annotations.Component [2]) same annotation name at different level: not ideal Regards, Hervé [1] http://plexus.codehaus.org/plexus-containers/plexus-component- annotations/apidocs/org/codehaus/plexus/component/annotations/Component.html [2] http://maven.apache.org/plugin-tools-3.0-SNAPSHOT/maven-plugin- annotations/apidocs/org/apache/maven/plugins/annotations/Component.html Le lundi 21 mai 2012 06:40:58 Mark Struberg a écrit : > Hi! > > Sorry that I didn't have more time yesterday night, so I missed the most > important question: > > Is the @Component annotation meant to be used on the component itself (for > defining the factory rule, like @ApplicationScoped) or is it used on the > InjectionPoint like @Inject? > > Or is it like a @Qualifier (kind of a typesafe bean 'name') which gets used > on both? > > > LieGrue, > strub > > > > > ----- Original Message ----- > > > From: Brett Porter <br...@apache.org> > > To: Maven Developers List <dev@maven.apache.org> > > Cc: > > Sent: Monday, May 21, 2012 7:22 AM > > Subject: Re: Maven Plugins annotations support @Component role attribute > > to Class<?>> > > On 21/05/2012, at 3:45 AM, Hervé BOUTEMY wrote: > >> here, the end-user is a plugin developer, then someone who should be > >> able > > > > to > > > >> create a (Plexus) component when necessary > >> > >> Yes, I liked @Component too but as soon as you write a component and > >> inject > >> > >> somponents inside it, you discover the discrepency: the more I work on > > > > this, > > > >> the more I discover these little discrepencies that lost me for a long > > > > time. > > > >> Notice that the target is JSR330 @Inject. > >> Is it too early to use @Inject? > > > > Agree - I didn't think @component (the Javadoc annotation) would carry > > over > > to the plugin annotation. It should just use @Inject if that's feasible. > > > > - Brett > > > > -- > > Brett Porter > > br...@apache.org > > http://brettporter.wordpress.com/ > > http://au.linkedin.com/in/brettporter > > http://twitter.com/brettporter > > > > > > > > > > > > > > --------------------------------------------------------------------- > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org