public abstract class AbstractApiMethodGeneratorMojo extends AbstractApiMethodBaseMojo
Modifier and Type | Field and Description |
---|---|
protected String |
proxyClass |
excludeConfigNames, excludeConfigTypes, extraOptions, substitutions
generatedSrcDir, generatedTestDir
COMPONENT_PACKAGE, componentName, componentPackage, log, OUT_PACKAGE, outPackage, PREFIX, project, scheme
Constructor and Description |
---|
AbstractApiMethodGeneratorMojo() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.camel.util.component.ApiMethodParser |
createAdapterParser(Class proxyType) |
void |
execute() |
File |
getApiMethodFile() |
org.apache.camel.util.component.ArgumentSubstitutionParser.Substitution[] |
getArgumentSubstitutions() |
static String |
getBeanPropertySuffix(String parameter) |
String |
getCanonicalName(org.apache.camel.util.component.ApiMethodParser.Argument argument) |
static String |
getDefaultArgValue(Class<?> aClass) |
String |
getExchangePropertyPrefix() |
Class<?> |
getProxyType() |
static String |
getResultDeclaration(Class<?> resultType) |
abstract List<String> |
getSignatureList() |
static String |
getTestName(org.apache.camel.util.component.ApiMethodParser.ApiMethodModel model) |
static String |
getType(Class<?> clazz) |
static boolean |
isVoidType(Class<?> resultType) |
clearSharedProjectState, getCanonicalName, getEngine, getProjectClassLoader, mergeTemplate, setSharedProjectState
@Parameter(required=true, property="org.apache.camel.proxyClass") protected String proxyClass
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected org.apache.camel.util.component.ApiMethodParser createAdapterParser(Class proxyType)
public abstract List<String> getSignatureList() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public Class<?> getProxyType() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public File getApiMethodFile() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public org.apache.camel.util.component.ArgumentSubstitutionParser.Substitution[] getArgumentSubstitutions()
public static String getTestName(org.apache.camel.util.component.ApiMethodParser.ApiMethodModel model)
public static boolean isVoidType(Class<?> resultType)
public String getExchangePropertyPrefix()
public String getCanonicalName(org.apache.camel.util.component.ApiMethodParser.Argument argument) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
Apache Camel