Package org.apache.camel.maven
Class JavaSourceApiMethodGeneratorMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.AbstractGeneratorMojo
-
- org.apache.camel.maven.AbstractSourceGeneratorMojo
-
- org.apache.camel.maven.AbstractApiMethodBaseMojo
-
- org.apache.camel.maven.AbstractApiMethodGeneratorMojo
-
- org.apache.camel.maven.JavaSourceApiMethodGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="fromSource", requiresDependencyResolution=TEST, requiresProject=true, defaultPhase=GENERATE_SOURCES, threadSafe=true) public class JavaSourceApiMethodGeneratorMojo extends AbstractApiMethodGeneratorMojo
Parses ApiMethod signatures from source.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DEFAULT_EXCLUDE_PACKAGES
protected String
excludeClasses
protected String
excludeMethods
protected String
excludePackages
protected String
includeMethods
protected Boolean
includeStaticMethods
-
Fields inherited from class org.apache.camel.maven.AbstractApiMethodGeneratorMojo
aliases, apiDescription, apiName, classPrefix, consumerOnly, nullableOptions, producerOnly, proxyClass
-
Fields inherited from class org.apache.camel.maven.AbstractApiMethodBaseMojo
excludeConfigNames, excludeConfigTypes, extraOptions, substitutions
-
Fields inherited from class org.apache.camel.maven.AbstractSourceGeneratorMojo
addCompileSourceRoots, generatedSrcDir, generatedTestDir
-
Fields inherited from class org.apache.camel.maven.AbstractGeneratorMojo
COMPONENT_PACKAGE, componentName, componentPackage, log, OUT_PACKAGE, outPackage, PREFIX, project, scheme
-
-
Constructor Summary
Constructors Constructor Description JavaSourceApiMethodGeneratorMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SignatureModel>
getSignatureList()
-
Methods inherited from class org.apache.camel.maven.AbstractApiMethodGeneratorMojo
createAdapterParser, executeInternal, getAliases, getApiDescription, getApiMethodFile, getApiMethods, getApiMethodsForParam, getApiName, getArgumentSubstitutions, getBeanPropertySuffix, getCanonicalName, getDefaultArgValue, getDoc, getExchangePropertyPrefix, getProxyType, getResultDeclaration, getTestName, getType, hasDoc, isOptionalParameter, isVoidType
-
Methods inherited from class org.apache.camel.maven.AbstractSourceGeneratorMojo
setCompileSourceRoots
-
Methods inherited from class org.apache.camel.maven.AbstractGeneratorMojo
execute, getCanonicalName, getEngine, getProjectClassLoader, mergeTemplate, refresh, setProjectClassLoader, updateResource
-
-
-
-
Field Detail
-
DEFAULT_EXCLUDE_PACKAGES
protected static final String DEFAULT_EXCLUDE_PACKAGES
- See Also:
- Constant Field Values
-
excludePackages
@Parameter(property="org.apache.camel.excludePackages", defaultValue="javax?\\.lang.*") protected String excludePackages
-
excludeClasses
@Parameter(property="org.apache.camel.excludeClasses") protected String excludeClasses
-
includeMethods
@Parameter(property="org.apache.camel.includeMethods") protected String includeMethods
-
excludeMethods
@Parameter(property="org.apache.camel.excludeMethods") protected String excludeMethods
-
includeStaticMethods
@Parameter(property="org.apache.camel.includeStaticMethods") protected Boolean includeStaticMethods
-
-
Method Detail
-
getSignatureList
public List<SignatureModel> getSignatureList() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
getSignatureList
in classAbstractApiMethodGeneratorMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-