Author: vsiveton
Date: Mon Feb 18 18:14:51 2008
New Revision: 628966

URL: http://svn.apache.org/viewvc?rev=628966&view=rev
Log:
o more javadoc

Modified:
    
maven/plugin-tools/trunk/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java
    
maven/plugin-tools/trunk/maven-plugin-tools-beanshell/src/main/java/org/apache/maven/tools/plugin/extractor/beanshell/BeanshellMojoDescriptorExtractor.java
    
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java

Modified: 
maven/plugin-tools/trunk/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java?rev=628966&r1=628965&r2=628966&view=diff
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java
 (original)
+++ 
maven/plugin-tools/trunk/maven-plugin-tools-ant/src/main/java/org/apache/maven/tools/plugin/extractor/ant/AntMojoDescriptorExtractor.java
 Mon Feb 18 18:14:51 2008
@@ -36,14 +36,21 @@
 import java.util.Map;
 import java.util.Set;
 
+/**
+ * Extracts Mojo descriptors from <a href="http://ant.apache.org";>Ant</a> 
sources.
+ *
+ * @version $Id$
+ */
 public class AntMojoDescriptorExtractor
     extends AbstractScriptedMojoDescriptorExtractor
 {
-
+    /** Default metada file extension */
     private static final String METADATA_FILE_EXTENSION = ".mojos.xml";
 
+    /** Default Ant build file extension */
     private static final String SCRIPT_FILE_EXTENSION = ".build.xml";
 
+    /** [EMAIL PROTECTED] */
     protected List extractMojoDescriptorsFromMetadata( Map 
metadataFilesKeyedByBasedir,
                                                        PluginDescriptor 
pluginDescriptor )
         throws ExtractionException, InvalidPluginDescriptorException
@@ -156,11 +163,13 @@
         return descriptors;
     }
 
+    /** [EMAIL PROTECTED] */
     protected String getScriptFileExtension()
     {
         return SCRIPT_FILE_EXTENSION;
     }
 
+    /** [EMAIL PROTECTED] */
     protected String getMetadataFileExtension()
     {
         return METADATA_FILE_EXTENSION;

Modified: 
maven/plugin-tools/trunk/maven-plugin-tools-beanshell/src/main/java/org/apache/maven/tools/plugin/extractor/beanshell/BeanshellMojoDescriptorExtractor.java
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-beanshell/src/main/java/org/apache/maven/tools/plugin/extractor/beanshell/BeanshellMojoDescriptorExtractor.java?rev=628966&r1=628965&r2=628966&view=diff
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-tools-beanshell/src/main/java/org/apache/maven/tools/plugin/extractor/beanshell/BeanshellMojoDescriptorExtractor.java
 (original)
+++ 
maven/plugin-tools/trunk/maven-plugin-tools-beanshell/src/main/java/org/apache/maven/tools/plugin/extractor/beanshell/BeanshellMojoDescriptorExtractor.java
 Mon Feb 18 18:14:51 2008
@@ -36,10 +36,13 @@
 import java.util.Set;
 
 /**
+ * Extracts Mojo descriptors from <a 
href="http://www.beanshell.org/";>BeanShell</a> sources.
+ *
  * @todo share constants
  * @todo add example usage tag that can be shown in the doco
  * @todo need to add validation directives so that systems embedding maven2 can
  * get validation directives to help users in IDEs.
+ * @version $Id$
  */
 public class BeanshellMojoDescriptorExtractor
     extends AbstractScriptedMojoDescriptorExtractor
@@ -73,11 +76,13 @@
         return mojoDescriptor;
     }
 
+    /** [EMAIL PROTECTED] */
     protected String getScriptFileExtension()
     {
         return ".bsh";
     }
 
+    /** [EMAIL PROTECTED] */
     protected List extractMojoDescriptors( Map scriptFilesKeyedByBasedir, 
PluginDescriptor pluginDescriptor )
         throws ExtractionException, InvalidPluginDescriptorException
     {

Modified: 
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
URL: 
http://svn.apache.org/viewvc/maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java?rev=628966&r1=628965&r2=628966&view=diff
==============================================================================
--- 
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
 (original)
+++ 
maven/plugin-tools/trunk/maven-plugin-tools-java/src/main/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractor.java
 Mon Feb 18 18:14:51 2008
@@ -46,40 +46,49 @@
 import java.util.TreeMap;
 
 /**
- * Extracts Mojo descriptors from Java sources.
+ * Extracts Mojo descriptors from <a href="http://java.sun.com/";>Java</a> 
sources.
+ * <br/>
+ * For more information, have a look to:
+ * <a 
href="http://maven.apache.org/developers/mojo-api-specification.html";>http://maven.apache.org/developers/mojo-api-specification.html</a>
  *
  * @todo add example usage tag that can be shown in the doco
  * @todo need to add validation directives so that systems embedding maven2 can
  * get validation directives to help users in IDEs.
+ * @version $Id$
  */
 public class JavaMojoDescriptorExtractor
     extends AbstractLogEnabled
     implements MojoDescriptorExtractor
 {
+    /** Refer to <code>&#64;instantiationStrategy</code> */
     public static final String MAVEN_PLUGIN_INSTANTIATION = 
"instantiationStrategy";
 
+    /** Refer to <code>&#64;configurator</code> */
     public static final String CONFIGURATOR = "configurator";
 
+    /** Refer to <code>&#64;parameter</code> */
     public static final String PARAMETER = "parameter";
 
+    /** Refer to <code>expression</code> combined to 
<code>&#64;parameter</code> */
     public static final String PARAMETER_EXPRESSION = "expression";
 
+    /** Refer to <code>default-value</code> combined to 
<code>&#64;parameter</code> */
     public static final String PARAMETER_DEFAULT_VALUE = "default-value";
 
+    /** Refer to <code>alias</code> combined to <code>&#64;parameter</code> */
     public static final String PARAMETER_ALIAS = "alias";
 
+    /** Refer to <code>&#64;since</code> */
     public static final String SINCE = "since";
 
-    /**
-     * This defines the default implementation in the case the parameter type 
is an interface.
-     */
+    /** This defines the default implementation in the case the parameter type 
is an interface.
+     * Refer to <code>implementation</code> combined to &#64;parameter */
     public static final String PARAMETER_IMPLEMENTATION = "implementation";
 
     /**
      * This indicates the base name of the bean properties used to read/write 
this parameter's value.
-     * So:
-     *
-     * @parameter property="project"
+     * <br/>
+     * Refer to <code>&#64;parameter property="project"</code>
      * <p/>
      * Would say there is a getProject() method and a setProject(Project) 
method. Here the field
      * name would not be the basis for the parameter's name. This mode of 
operation will allow the
@@ -87,48 +96,74 @@
      */
     public static final String PARAMETER_PROPERTY = "property";
 
+    /** Refer to <code>&#64;required</code> */
     public static final String REQUIRED = "required";
 
+    /** Refer to <code>&#64;deprecated</code> */
     public static final String DEPRECATED = "deprecated";
 
+    /** Refer to <code>&#64;readonly</code> */
     public static final String READONLY = "readonly";
 
+    /** Refer to <code>&#64;goal</code> */
     public static final String GOAL = "goal";
 
+    /** Refer to <code>&#64;phase</code> */
     public static final String PHASE = "phase";
 
+    /** Refer to <code>&#64;execute</code> */
     public static final String EXECUTE = "execute";
 
+    /** Refer to <code>lifecycle</code> combined to <code>&#64;execute</code> 
*/
     public static final String EXECUTE_LIFECYCLE = "lifecycle";
 
+    /** Refer to <code>phase</code> combined to <code>&#64;execute</code> */
     public static final String EXECUTE_PHASE = "phase";
 
+    /** Refer to <code>goal</code> combined to <code>&#64;execute</code> */
     public static final String EXECUTE_GOAL = "goal";
 
+    /** Refer to <code>&#64;description</code> */
     public static final String GOAL_DESCRIPTION = "description";
 
+    /** Refer to <code>requiresDependencyResolution</code> combined to 
<code>&#64;goal</code> */
     public static final String GOAL_REQUIRES_DEPENDENCY_RESOLUTION = 
"requiresDependencyResolution";
 
+    /** Refer to <code>requiresProject</code> combined to 
<code>&#64;goal</code> */
     public static final String GOAL_REQUIRES_PROJECT = "requiresProject";
 
+    /** Refer to <code>requiresReports</code> combined to 
<code>&#64;goal</code> */
     public static final String GOAL_REQUIRES_REPORTS = "requiresReports";
 
+    /** Refer to <code>aggregator</code> combined to <code>&#64;goal</code> */
     public static final String GOAL_IS_AGGREGATOR = "aggregator";
 
+    /** Refer to <code>requiresOnline</code> combined to 
<code>&#64;goal</code> */
     public static final String GOAL_REQUIRES_ONLINE = "requiresOnline";
 
+    /** Refer to <code>inheritByDefault</code> combined to 
<code>&#64;goal</code> */
     public static final String GOAL_INHERIT_BY_DEFAULT = "inheritByDefault";
 
+    /** Refer to <code>attainAlways</code> combined to <code>&#64;goal</code> 
*/
     public static final String GOAL_MULTI_EXECUTION_STRATEGY = "attainAlways";
 
+    /** Refer to <code>attainAlways</code> combined to <code>&#64;goal</code> 
*/
     public static final String GOAL_REQUIRES_DIRECT_INVOCATION = 
"requiresDirectInvocation";
 
+    /** Refer to <code>&#64;component</code> */
     public static final String COMPONENT = "component";
 
+    /** Refer to <code>role</code> combined to <code>&#64;component</code> */
     public static final String COMPONENT_ROLE = "role";
 
+    /** Refer to <code>roleHint</code> combined to <code>&#64;component</code> 
*/
     public static final String COMPONENT_ROLEHINT = "roleHint";
 
+    /**
+     * @param parameter not null
+     * @param i
+     * @throws InvalidParameterException if any
+     */
     protected void validateParameter( Parameter parameter, int i )
         throws InvalidParameterException
     {
@@ -161,6 +196,11 @@
     // Mojo descriptor creation from @tags
     // ----------------------------------------------------------------------
 
+    /**
+     * @param javaClass not null
+     * @return a mojo descriptor
+     * @throws InvalidPluginDescriptorException if any
+     */
     protected MojoDescriptor createMojoDescriptor( JavaClass javaClass )
         throws InvalidPluginDescriptorException
     {
@@ -543,6 +583,7 @@
         return rawParams;
     }
 
+    /** [EMAIL PROTECTED] */
     public List execute( MavenProject project, PluginDescriptor 
pluginDescriptor )
         throws ExtractionException, InvalidPluginDescriptorException
     {
@@ -569,8 +610,11 @@
         return descriptors;
     }
 
+    /**
+     * @param project not null
+     * @return an array of java class
+     */
     protected JavaClass[] discoverClasses( final MavenProject project )
-        throws ExtractionException
     {
         JavaDocBuilder builder = new JavaDocBuilder();
 
@@ -589,6 +633,10 @@
         return builder.getClasses();
     }
 
+    /**
+     * @param mojoDescriptor not null
+     * @throws InvalidParameterException if any
+     */
     protected void validate( MojoDescriptor mojoDescriptor )
         throws InvalidParameterException
     {


Reply via email to