|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor
public class JavaMojoDescriptorExtractor
Extracts Mojo descriptors from Java sources.
For more information about the usage tag, have a look to:
http://maven.apache.org/developers/mojo-api-specification.html
MojoDescriptor
Field Summary | |
---|---|
static java.lang.String |
COMPONENT
Deprecated. since 2.4, use JavaMojoAnnotation.COMPONENT instead of. |
static java.lang.String |
COMPONENT_ROLE
Deprecated. since 2.4, use JavaMojoAnnotation.COMPONENT_ROLE instead of. |
static java.lang.String |
COMPONENT_ROLEHINT
Deprecated. since 2.4, use JavaMojoAnnotation.COMPONENT_ROLEHINT instead of. |
static java.lang.String |
CONFIGURATOR
Deprecated. since 2.4, use JavaMojoAnnotation.CONFIGURATOR instead of. |
static java.lang.String |
DEPRECATED
Deprecated. since 2.4, use JavaMojoAnnotation.DEPRECATED instead of. |
static java.lang.String |
EXECUTE
Deprecated. since 2.4, use JavaMojoAnnotation.EXECUTE instead of. |
static java.lang.String |
EXECUTE_GOAL
Deprecated. since 2.4, use JavaMojoAnnotation.EXECUTE_GOAL instead of. |
static java.lang.String |
EXECUTE_LIFECYCLE
Deprecated. since 2.4, use JavaMojoAnnotation.EXECUTE_LIFECYCLE instead of. |
static java.lang.String |
EXECUTE_PHASE
Deprecated. since 2.4, use JavaMojoAnnotation.EXECUTE_PHASE instead of. |
static java.lang.String |
GOAL
Deprecated. since 2.4, use JavaMojoAnnotation.GOAL instead of. |
static java.lang.String |
GOAL_DESCRIPTION
Deprecated. since 2.4, use JavaMojoAnnotation.DESCRIPTION instead of. |
static java.lang.String |
GOAL_INHERIT_BY_DEFAULT
Deprecated. since 2.4, use JavaMojoAnnotation.INHERIT_BY_DEFAULT instead of. |
static java.lang.String |
GOAL_IS_AGGREGATOR
Deprecated. since 2.4, use JavaMojoAnnotation.AGGREGATOR instead of. |
static java.lang.String |
GOAL_MULTI_EXECUTION_STRATEGY
Deprecated. since 2.4, use JavaMojoAnnotation.MULTI_EXECUTION_STRATEGY instead of. |
static java.lang.String |
GOAL_REQUIRES_DEPENDENCY_RESOLUTION
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRES_DEPENDENCY_RESOLUTION instead of. |
static java.lang.String |
GOAL_REQUIRES_DIRECT_INVOCATION
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRES_DIRECT_INVOCATION instead of. |
static java.lang.String |
GOAL_REQUIRES_ONLINE
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRES_ONLINE instead of. |
static java.lang.String |
GOAL_REQUIRES_PROJECT
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRES_PROJECT instead of. |
static java.lang.String |
GOAL_REQUIRES_REPORTS
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRES_REPORTS instead of. |
static java.lang.String |
MAVEN_PLUGIN_INSTANTIATION
Deprecated. since 2.4, use JavaMojoAnnotation.INSTANTIATION_STRATEGY instead of. |
static java.lang.String |
PARAMETER
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER instead of. |
static java.lang.String |
PARAMETER_ALIAS
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER_ALIAS instead of. |
static java.lang.String |
PARAMETER_DEFAULT_VALUE
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER_DEFAULT_VALUE instead of. |
static java.lang.String |
PARAMETER_EXPRESSION
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER_EXPRESSION instead of. |
static java.lang.String |
PARAMETER_IMPLEMENTATION
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER_IMPLEMENTATION instead of. |
static java.lang.String |
PARAMETER_PROPERTY
Deprecated. since 2.4, use JavaMojoAnnotation.PARAMETER_PROPERTY instead of. |
static java.lang.String |
PHASE
Deprecated. since 2.4, use JavaMojoAnnotation.PHASE instead of. |
static java.lang.String |
READONLY
Deprecated. since 2.4, use JavaMojoAnnotation.READONLY instead of. |
static java.lang.String |
REQUIRED
Deprecated. since 2.4, use JavaMojoAnnotation.REQUIRED instead of. |
static java.lang.String |
SINCE
Deprecated. since 2.4, use JavaMojoAnnotation.SINCE instead of. |
Fields inherited from interface org.apache.maven.tools.plugin.extractor.MojoDescriptorExtractor |
---|
ROLE |
Fields inherited from interface org.apache.maven.tools.plugin.extractor.java.JavaMojoAnnotation |
---|
AGGREGATOR, DESCRIPTION, EXECUTION_STATEGY, IMPLEMENTATION, INHERIT_BY_DEFAULT, INSTANTIATION_STRATEGY, LANGUAGE, MULTI_EXECUTION_STRATEGY, REQUIRES_DEPENDENCY_COLLECTION, REQUIRES_DEPENDENCY_RESOLUTION, REQUIRES_DIRECT_INVOCATION, REQUIRES_ONLINE, REQUIRES_PROJECT, REQUIRES_REPORTS, THREAD_SAFE |
Constructor Summary | |
---|---|
JavaMojoDescriptorExtractor()
|
Method Summary | |
---|---|
protected org.apache.maven.plugin.descriptor.MojoDescriptor |
createMojoDescriptor(com.thoughtworks.qdox.model.JavaClass javaClass)
|
protected com.thoughtworks.qdox.model.JavaClass[] |
discoverClasses(PluginToolsRequest request)
|
java.util.List |
execute(org.apache.maven.project.MavenProject project,
org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
|
java.util.List |
execute(PluginToolsRequest request)
|
protected void |
validate(org.apache.maven.plugin.descriptor.MojoDescriptor mojoDescriptor)
|
protected void |
validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter,
int i)
|
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 |
Field Detail |
---|
public static final java.lang.String MAVEN_PLUGIN_INSTANTIATION
JavaMojoAnnotation.INSTANTIATION_STRATEGY
instead of.public static final java.lang.String CONFIGURATOR
JavaMojoAnnotation.CONFIGURATOR
instead of.public static final java.lang.String PARAMETER
JavaMojoAnnotation.PARAMETER
instead of.public static final java.lang.String PARAMETER_EXPRESSION
JavaMojoAnnotation.PARAMETER_EXPRESSION
instead of.public static final java.lang.String PARAMETER_DEFAULT_VALUE
JavaMojoAnnotation.PARAMETER_DEFAULT_VALUE
instead of.public static final java.lang.String PARAMETER_ALIAS
JavaMojoAnnotation.PARAMETER_ALIAS
instead of.public static final java.lang.String SINCE
JavaMojoAnnotation.SINCE
instead of.public static final java.lang.String PARAMETER_IMPLEMENTATION
JavaMojoAnnotation.PARAMETER_IMPLEMENTATION
instead of.public static final java.lang.String PARAMETER_PROPERTY
JavaMojoAnnotation.PARAMETER_PROPERTY
instead of.public static final java.lang.String REQUIRED
JavaMojoAnnotation.REQUIRED
instead of.public static final java.lang.String DEPRECATED
JavaMojoAnnotation.DEPRECATED
instead of.public static final java.lang.String READONLY
JavaMojoAnnotation.READONLY
instead of.public static final java.lang.String GOAL
JavaMojoAnnotation.GOAL
instead of.public static final java.lang.String PHASE
JavaMojoAnnotation.PHASE
instead of.public static final java.lang.String EXECUTE
JavaMojoAnnotation.EXECUTE
instead of.public static final java.lang.String EXECUTE_LIFECYCLE
JavaMojoAnnotation.EXECUTE_LIFECYCLE
instead of.public static final java.lang.String EXECUTE_PHASE
JavaMojoAnnotation.EXECUTE_PHASE
instead of.public static final java.lang.String EXECUTE_GOAL
JavaMojoAnnotation.EXECUTE_GOAL
instead of.public static final java.lang.String GOAL_DESCRIPTION
JavaMojoAnnotation.DESCRIPTION
instead of.public static final java.lang.String GOAL_REQUIRES_DEPENDENCY_RESOLUTION
JavaMojoAnnotation.REQUIRES_DEPENDENCY_RESOLUTION
instead of.public static final java.lang.String GOAL_REQUIRES_PROJECT
JavaMojoAnnotation.REQUIRES_PROJECT
instead of.public static final java.lang.String GOAL_REQUIRES_REPORTS
JavaMojoAnnotation.REQUIRES_REPORTS
instead of.public static final java.lang.String GOAL_IS_AGGREGATOR
JavaMojoAnnotation.AGGREGATOR
instead of.public static final java.lang.String GOAL_REQUIRES_ONLINE
JavaMojoAnnotation.REQUIRES_ONLINE
instead of.public static final java.lang.String GOAL_INHERIT_BY_DEFAULT
JavaMojoAnnotation.INHERIT_BY_DEFAULT
instead of.public static final java.lang.String GOAL_MULTI_EXECUTION_STRATEGY
JavaMojoAnnotation.MULTI_EXECUTION_STRATEGY
instead of.public static final java.lang.String GOAL_REQUIRES_DIRECT_INVOCATION
JavaMojoAnnotation.REQUIRES_DIRECT_INVOCATION
instead of.public static final java.lang.String COMPONENT
JavaMojoAnnotation.COMPONENT
instead of.public static final java.lang.String COMPONENT_ROLE
JavaMojoAnnotation.COMPONENT_ROLE
instead of.public static final java.lang.String COMPONENT_ROLEHINT
JavaMojoAnnotation.COMPONENT_ROLEHINT
instead of.Constructor Detail |
---|
public JavaMojoDescriptorExtractor()
Method Detail |
---|
protected void validateParameter(org.apache.maven.plugin.descriptor.Parameter parameter, int i) throws org.apache.maven.plugin.descriptor.InvalidParameterException
parameter
- not nulli
- positive number
org.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 null
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
- if anypublic java.util.List execute(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute
in interface MojoDescriptorExtractor
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
public java.util.List execute(PluginToolsRequest request) throws ExtractionException, org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
execute
in interface MojoDescriptorExtractor
ExtractionException
org.apache.maven.plugin.descriptor.InvalidPluginDescriptorException
protected 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 null
org.apache.maven.plugin.descriptor.InvalidParameterException
- if any
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |