org.apache.maven.tools.plugin.annotations
Class JavaAnnotationsMojoDescriptorExtractor
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor
- All Implemented Interfaces:
- MojoDescriptorExtractor, org.codehaus.plexus.logging.LogEnabled
@Component(role=org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor.class,
hint="java-annotations")
public class JavaAnnotationsMojoDescriptorExtractor
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements MojoDescriptorExtractor
JavaMojoDescriptorExtractor, a MojoDescriptor extractor to read descriptors from java classes with annotations.
- Since:
- 3.0
- Author:
- Olivier Lamy
Method Summary |
protected Map<String,JavaClass> |
discoverClasses(PluginToolsRequest request)
|
protected Map<String,JavaClass> |
discoverClasses(String encoding,
List<File> sourceDirectories)
|
protected Map<String,JavaClass> |
discoverClasses(String encoding,
MavenProject project)
|
protected Map<String,JavaClass> |
discoverClassesFromSourcesJar(org.apache.maven.artifact.Artifact artifact,
PluginToolsRequest request,
String classifier)
|
List<MojoDescriptor> |
execute(MavenProject project,
PluginDescriptor pluginDescriptor)
|
List<MojoDescriptor> |
execute(PluginToolsRequest request)
|
protected ExecuteAnnotationContent |
findExecuteInParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
|
protected List<ComponentAnnotationContent> |
getComponentParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ComponentAnnotationContent> componentAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
|
protected Map<String,ComponentAnnotationContent> |
getComponentsParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,ComponentAnnotationContent> components,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
|
protected MavenProject |
getFromProjectReferences(org.apache.maven.artifact.Artifact artifact,
MavenProject project)
|
protected List<ParameterAnnotationContent> |
getParametersParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ParameterAnnotationContent> parameterAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
|
protected Map<String,ParameterAnnotationContent> |
getParametersParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,ParameterAnnotationContent> parameters,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
|
protected void |
populateDataFromJavadoc(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses,
Map<String,JavaClass> javaClassesMap)
from sources scan to get @since and @deprecated and description of classes and fields. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaAnnotationsMojoDescriptorExtractor
public JavaAnnotationsMojoDescriptorExtractor()
execute
public List<MojoDescriptor> execute(MavenProject project,
PluginDescriptor pluginDescriptor)
throws ExtractionException,
InvalidPluginDescriptorException
- Specified by:
execute
in interface MojoDescriptorExtractor
- Throws:
ExtractionException
InvalidPluginDescriptorException
execute
public List<MojoDescriptor> execute(PluginToolsRequest request)
throws ExtractionException,
InvalidPluginDescriptorException
- Specified by:
execute
in interface MojoDescriptorExtractor
- Throws:
ExtractionException
InvalidPluginDescriptorException
discoverClassesFromSourcesJar
protected Map<String,JavaClass> discoverClassesFromSourcesJar(org.apache.maven.artifact.Artifact artifact,
PluginToolsRequest request,
String classifier)
throws ExtractionException
- Throws:
ExtractionException
populateDataFromJavadoc
protected void populateDataFromJavadoc(Map<String,MojoAnnotatedClass> mojoAnnotatedClasses,
Map<String,JavaClass> javaClassesMap)
- from sources scan to get @since and @deprecated and description of classes and fields.
- Parameters:
mojoAnnotatedClasses
- javaClassesMap
-
discoverClasses
protected Map<String,JavaClass> discoverClasses(PluginToolsRequest request)
discoverClasses
protected Map<String,JavaClass> discoverClasses(String encoding,
MavenProject project)
discoverClasses
protected Map<String,JavaClass> discoverClasses(String encoding,
List<File> sourceDirectories)
findExecuteInParentHierarchy
protected ExecuteAnnotationContent findExecuteInParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
getParametersParentHierarchy
protected Map<String,ParameterAnnotationContent> getParametersParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,ParameterAnnotationContent> parameters,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
getParametersParent
protected List<ParameterAnnotationContent> getParametersParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ParameterAnnotationContent> parameterAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
getComponentsParentHierarchy
protected Map<String,ComponentAnnotationContent> getComponentsParentHierarchy(MojoAnnotatedClass mojoAnnotatedClass,
Map<String,ComponentAnnotationContent> components,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
getComponentParent
protected List<ComponentAnnotationContent> getComponentParent(MojoAnnotatedClass mojoAnnotatedClass,
List<ComponentAnnotationContent> componentAnnotationContents,
Map<String,MojoAnnotatedClass> mojoAnnotatedClasses)
getFromProjectReferences
protected MavenProject getFromProjectReferences(org.apache.maven.artifact.Artifact artifact,
MavenProject project)
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.