@Named(value="java-javadoc") @Singleton public class JavaJavadocMojoDescriptorExtractor extends org.codehaus.plexus.logging.AbstractLogEnabled implements MojoDescriptorExtractor, JavadocMojoAnnotation
Extracts Mojo descriptors from Java source
javadoc comments only. New mojos should rather rely on annotations and comments which are evaluated
by extractor named java
.
MojoDescriptor
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
AGGREGATOR, COMPONENT, COMPONENT_ROLE, COMPONENT_ROLEHINT, CONFIGURATOR, DEPRECATED, DESCRIPTION, EXECUTE, EXECUTE_GOAL, EXECUTE_LIFECYCLE, EXECUTE_PHASE, EXECUTION_STATEGY, GOAL, IMPLEMENTATION, INHERIT_BY_DEFAULT, INSTANTIATION_STRATEGY, LANGUAGE, MULTI_EXECUTION_STRATEGY, PARAMETER, PARAMETER_ALIAS, PARAMETER_DEFAULT_VALUE, PARAMETER_EXPRESSION, PARAMETER_IMPLEMENTATION, PARAMETER_NAME, PARAMETER_PROPERTY, PHASE, READONLY, REQUIRED, REQUIRES_DEPENDENCY_COLLECTION, REQUIRES_DEPENDENCY_RESOLUTION, REQUIRES_DIRECT_INVOCATION, REQUIRES_ONLINE, REQUIRES_PROJECT, REQUIRES_REPORTS, SINCE, THREAD_SAFE
Constructor and Description |
---|
JavaJavadocMojoDescriptorExtractor() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.maven.plugin.descriptor.MojoDescriptor |
createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass) |
protected Collection<com.thoughtworks.qdox.model.JavaClass> |
discoverClasses(PluginToolsRequest request) |
List<org.apache.maven.plugin.descriptor.MojoDescriptor> |
execute(PluginToolsRequest request)
Execute the mojo extraction.
|
GroupKey |
getGroupKey()
Returns the
GroupKey of extractor, as MojoScanner will
execute them grouped, and ordered within groups. |
String |
getName()
Returns the "name" (id) of the extractor.
|
boolean |
isDeprecated()
Returns
true if extractor is deprecated. |
protected void |
validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor) |
protected void |
validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i) |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequiredJavaVersion
public static final String NAME
public JavaJavadocMojoDescriptorExtractor()
public String getName()
MojoDescriptorExtractor
getName
in interface MojoDescriptorExtractor
public boolean isDeprecated()
MojoDescriptorExtractor
true
if extractor is deprecated.isDeprecated
in interface MojoDescriptorExtractor
public GroupKey getGroupKey()
MojoDescriptorExtractor
GroupKey
of extractor, as MojoScanner
will
execute them grouped, and ordered within groups. Must never return null
.getGroupKey
in interface MojoDescriptorExtractor
protected void validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter, int i) throws org.apache.maven.plugin.descriptor.InvalidParameterException
parameter
- not nulli
- positive numberorg.apache.maven.plugin.descriptor.InvalidParameterException
- if anyprotected org.apache.maven.plugin.descriptor.MojoDescriptor createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass) throws org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
javaClass
- not nullorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anypublic List<org.apache.maven.plugin.descriptor.MojoDescriptor> execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
MojoDescriptorExtractor
execute
in interface MojoDescriptorExtractor
request
- The PluginToolsRequest
containing information for the extraction process.ExtractionException
- if anyorg.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anyprotected Collection<com.thoughtworks.qdox.model.JavaClass> discoverClasses(PluginToolsRequest request)
request
- The plugin request.protected void validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor) throws org.apache.maven.plugin.descriptor.InvalidParameterException
mojoDescriptor
- not nullorg.apache.maven.plugin.descriptor.InvalidParameterException
- if anyCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.