org.apache.maven.plugins.annotations
Annotation Type Component


@Documented
@Retention(value=CLASS)
@Target(value=FIELD)
@Inherited
public @interface Component

Used to configure injection of Plexus components by MavenPluginManager.getConfiguredMojo(...) and special Maven objects as well:

mojoExecution
org.apache.maven.plugin.MojoExecution
project
org.apache.maven.project.MavenProject
session
org.apache.maven.execution.MavenSession
settings
org.apache.maven.settings.Settings
plugin (Maven-3 only)
org.apache.maven.plugin.descriptor.PluginDescriptor

Since:
3.0
Author:
Olivier Lamy

Optional Element Summary
 String hint
          hint of the component to inject.
 Class<?> role
          role of the component to inject.
 

role

public abstract Class<?> role
role of the component to inject.

Returns:
the role
Default:
java.lang.Object.class

hint

public abstract String hint
hint of the component to inject.

Returns:
the hint
Default:
""


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.