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: session, project, mojo, plugin, settings.

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.