On Wed, May 23, 2012 at 7:00 AM, Olivier Lamy <[email protected]> wrote: [del] >>> I may have misunderstood what you said earlier, but I thought the runtime >>> operated off of plugin.xml still - and the plugin tools could parse any >>> annotation into that, so we were free to use the standard ones. In the >>> future, the core could well use that more directly, which would also be >>> easier if it's a standard annotation. >> >> Ok makes sense. >> Looks good for me. > > Nope in fact. Some use cases makes that impossible. > Sample from war plugin: > > /** > * @component role="org.codehaus.plexus.archiver.Archiver" role-hint="jar" > */ > private JarArchiver jarArchiver; > > So we need role attribute/information to know the type for writing the > plugin descriptor. > And @Inject doesn't have that.
Please excuse my extreme ignorance of annotation injection :) But would have thought there was something that helped with this problem already available. My quick googling looks like @Qualifier types of @Named might be what is needed. Can someone with a clue confirm this? --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
