removed readonly and required attributes from component configuration, both in java 5 annotations or javadoc tags documentation, since they are ignored

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@1339666 13f79535-47bb-0310-9956-ffa450edef68
master
Herve Boutemy 2012-05-17 15:52:18 +00:00
parent 5a16d68d60
commit 34400e4e3c
3 changed files with 3 additions and 17 deletions

View File

@ -49,16 +49,4 @@ public @interface Component
* @return the role-hint
*/
String roleHint() default "";
/**
* is the component required?
* @return <code>true</code> if the Mojo should fail when the component cannot be injected
*/
boolean required() default true;
/**
* ignored...
* @return
*/
boolean readonly() default true;
}

View File

@ -510,11 +510,11 @@ public class JavaAnnotationsMojoDescriptorExtractor
parameter.setName( componentAnnotationContent.getFieldName() );
parameter.setRequirement(
new Requirement( componentAnnotationContent.role(), componentAnnotationContent.roleHint() ) );
parameter.setEditable( false );
parameter.setDeprecated( componentAnnotationContent.getDeprecated() );
parameter.setSince( componentAnnotationContent.getSince() );
// same behaviour as JavaMojoDescriptorExtractor
//parameter.setRequired( componentAnnotationContent.required() );
//parameter.setRequired( ... );
parameter.setEditable( false );
mojoDescriptor.addParameter( parameter );
}

View File

@ -72,8 +72,6 @@ public class MyMojo
/**
* @component role="..." roleHint="..."
* @readonly
* @required
* @since <since-text>
* @deprecated <deprecated-text>
*/
@ -93,4 +91,4 @@ public class MyMojo
* {{{/developers/mojo-api-specification.html#The_Descriptor_and_Annotations}Mojo API Specification}}
* {{{/ref/current/maven-plugin-api/plugin.html}META-INF/maven/plugin.xml plugin descriptor}}
* {{{/ref/current/maven-plugin-api/plugin.html}<<<META-INF/maven/plugin.xml>>> plugin descriptor}}