public abstract class AbstractApiMethodGeneratorMojo extends AbstractApiMethodBaseMojo
| Modifier and Type | Field and Description |
|---|---|
protected List<ApiMethodAlias> |
aliases
Method alias patterns for all APIs.
|
protected String |
apiDescription |
protected String |
apiName |
protected String |
classPrefix |
protected boolean |
consumerOnly |
protected String[] |
nullableOptions
Names of options that can be set to null value if not specified.
|
protected boolean |
producerOnly |
protected String |
proxyClass |
excludeConfigNames, excludeConfigTypes, extraOptions, substitutionsaddCompileSourceRoots, generatedSrcDir, generatedTestDirCOMPONENT_PACKAGE, componentName, componentPackage, log, OUT_PACKAGE, outPackage, PREFIX, project, scheme| Constructor and Description |
|---|
AbstractApiMethodGeneratorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.camel.support.component.ApiMethodParser |
createAdapterParser(Class proxyType) |
void |
executeInternal()
Template Method which assumes
AbstractGeneratorMojo.projectClassLoader is set. |
String |
getAliases() |
String |
getApiDescription(String apiDescription) |
File |
getApiMethodFile() |
String |
getApiMethods(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models) |
static String |
getApiMethodsForParam(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models,
org.apache.camel.support.component.ApiMethodArg argument) |
String |
getApiName(String apiName) |
org.apache.camel.support.component.ArgumentSubstitutionParser.Substitution[] |
getArgumentSubstitutions() |
static String |
getBeanPropertySuffix(String parameter) |
String |
getCanonicalName(org.apache.camel.support.component.ApiMethodArg argument) |
static String |
getDefaultArgValue(Class<?> aClass) |
String |
getDoc(org.apache.camel.support.component.ApiMethodArg argument) |
String |
getExchangePropertyPrefix() |
Class<?> |
getProxyType() |
static String |
getResultDeclaration(Class<?> resultType) |
abstract List<SignatureModel> |
getSignatureList() |
static String |
getTestName(org.apache.camel.support.component.ApiMethodParser.ApiMethodModel model) |
static String |
getType(Class<?> clazz) |
boolean |
hasDoc(org.apache.camel.support.component.ApiMethodArg argument) |
boolean |
isOptionalParameter(org.apache.camel.support.component.ApiMethodArg argument) |
static boolean |
isVoidType(Class<?> resultType) |
setCompileSourceRootsexecute, getCanonicalName, getEngine, getProjectClassLoader, mergeTemplate, refresh, setProjectClassLoader, updateResource@Parameter(required=true,
property="org.apache.camel.proxyClass")
protected String proxyClass
@Parameter protected String classPrefix
@Parameter protected String apiName
@Parameter protected String apiDescription
@Parameter protected boolean consumerOnly
@Parameter protected boolean producerOnly
@Parameter protected List<ApiMethodAlias> aliases
@Parameter protected String[] nullableOptions
public void executeInternal()
throws org.apache.maven.plugin.MojoExecutionException
AbstractGeneratorMojoAbstractGeneratorMojo.projectClassLoader is set.executeInternal in class AbstractGeneratorMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.camel.support.component.ApiMethodParser createAdapterParser(Class proxyType)
public abstract List<SignatureModel> getSignatureList() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic Class<?> getProxyType() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic File getApiMethodFile() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic org.apache.camel.support.component.ArgumentSubstitutionParser.Substitution[] getArgumentSubstitutions()
public String getAliases()
public static String getApiMethodsForParam(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models, org.apache.camel.support.component.ApiMethodArg argument)
public static String getTestName(org.apache.camel.support.component.ApiMethodParser.ApiMethodModel model)
public static boolean isVoidType(Class<?> resultType)
public String getExchangePropertyPrefix()
public boolean hasDoc(org.apache.camel.support.component.ApiMethodArg argument)
public String getDoc(org.apache.camel.support.component.ApiMethodArg argument)
public boolean isOptionalParameter(org.apache.camel.support.component.ApiMethodArg argument)
public String getApiMethods(List<org.apache.camel.support.component.ApiMethodParser.ApiMethodModel> models)
public String getCanonicalName(org.apache.camel.support.component.ApiMethodArg argument) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionApache Camel