Package org.apache.camel.maven
Class AbstractApiMethodGeneratorMojo
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
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
JavaSourceApiMethodGeneratorMojo
Base Mojo class for ApiMethod generators.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ApiMethodAlias> Method alias patterns for all APIs.protected Stringprotected Stringprotected Stringprotected booleanprotected String[]Names of options that can be set to null value if not specified.protected booleanprotected StringFields inherited from class org.apache.camel.maven.AbstractApiMethodBaseMojo
excludeConfigNames, excludeConfigTypes, extraOptions, substitutionsFields inherited from class org.apache.camel.maven.AbstractSourceGeneratorMojo
addCompileSourceRoots, generatedSrcDir, generatedTestDirFields inherited from class org.apache.camel.maven.AbstractGeneratorMojo
COMPONENT_PACKAGE, componentName, componentPackage, log, OUT_PACKAGE, outPackage, PREFIX, project, schemeFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.camel.support.component.ApiMethodParser<?> createAdapterParser(Class<?> proxyType) voidTemplate Method which assumesAbstractGeneratorMojo.projectClassLoaderis set.getApiDescription(String apiDescription) getApiMethods(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models) static StringgetApiMethodsForParam(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models, org.apache.camel.support.component.ApiMethodArg argument) getApiName(String apiName) org.apache.camel.support.component.ArgumentSubstitutionParser.Substitution[]static StringgetBeanPropertySuffix(String parameter) getCanonicalName(org.apache.camel.support.component.ApiMethodArg argument) static StringgetDefaultArgValue(Class<?> aClass) getDoc(org.apache.camel.support.component.ApiMethodArg argument) Class<?> static StringgetResultDeclaration(Class<?> resultType) abstract List<SignatureModel> static StringgetTestName(org.apache.camel.support.component.ApiMethodParser.ApiMethodModel model) static StringbooleanhasDoc(org.apache.camel.support.component.ApiMethodArg argument) booleanisOptionalParameter(org.apache.camel.support.component.ApiMethodArg argument) static booleanisVoidType(Class<?> resultType) Methods inherited from class org.apache.camel.maven.AbstractSourceGeneratorMojo
setCompileSourceRootsMethods inherited from class org.apache.camel.maven.AbstractGeneratorMojo
execute, getCanonicalName, getEngine, getProjectClassLoader, mergeTemplate, refresh, setProjectClassLoader, updateResourceMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
proxyClass
-
classPrefix
-
apiName
-
apiDescription
-
consumerOnly
@Parameter protected boolean consumerOnly -
producerOnly
@Parameter protected boolean producerOnly -
aliases
Method alias patterns for all APIs. -
nullableOptions
Names of options that can be set to null value if not specified.
-
-
Constructor Details
-
AbstractApiMethodGeneratorMojo
public AbstractApiMethodGeneratorMojo()
-
-
Method Details
-
executeInternal
public void executeInternal() throws org.apache.maven.plugin.MojoExecutionExceptionDescription copied from class:AbstractGeneratorMojoTemplate Method which assumesAbstractGeneratorMojo.projectClassLoaderis set.- Specified by:
executeInternalin classAbstractGeneratorMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
createAdapterParser
protected org.apache.camel.support.component.ApiMethodParser<?> createAdapterParser(Class<?> proxyType) -
getSignatureList
public abstract List<SignatureModel> getSignatureList() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getProxyType
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getApiMethodFile
-
getArgumentSubstitutions
public org.apache.camel.support.component.ArgumentSubstitutionParser.Substitution[] getArgumentSubstitutions() -
getType
-
getAliases
-
getApiMethodsForParam
-
getTestName
public static String getTestName(org.apache.camel.support.component.ApiMethodParser.ApiMethodModel model) -
isVoidType
-
getExchangePropertyPrefix
-
getResultDeclaration
-
hasDoc
public boolean hasDoc(org.apache.camel.support.component.ApiMethodArg argument) -
getDoc
-
getApiName
-
getApiDescription
-
isOptionalParameter
public boolean isOptionalParameter(org.apache.camel.support.component.ApiMethodArg argument) -
getCanonicalName
-
getApiMethods
-
getDefaultArgValue
-
getBeanPropertySuffix
-