Package org.apache.camel.maven
Class ApiComponentGeneratorMojo
- 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.ApiComponentGeneratorMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="fromApis", requiresDependencyResolution=COMPILE_PLUS_RUNTIME, requiresProject=true, defaultPhase=GENERATE_SOURCES, threadSafe=true) public class ApiComponentGeneratorMojo extends AbstractApiMethodBaseMojo
Generates Camel Component based on a collection of APIs.
-
-
Field Summary
Fields Modifier and Type Field Description protected ApiProxy[]
apis
List of API names, proxies and code generation settings.protected static String
DEFAULT_EXCLUDE_PACKAGES
protected FromJavasource
fromJavasource
Common Javasource code generation settings.-
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 ApiComponentGeneratorMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeInternal()
Template Method which assumesAbstractGeneratorMojo.projectClassLoader
is set.static String
getApiMethod(String proxyClass, String classPrefix)
static String
getEndpointConfig(String proxyClass, String classPrefix)
static String
getEnumConstant(String enumValue)
static String
getNullableOptionValues(String[] nullableOptions)
-
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
-
apis
@Parameter(required=true) protected ApiProxy[] apis
List of API names, proxies and code generation settings.
-
fromJavasource
@Parameter protected FromJavasource fromJavasource
Common Javasource code generation settings.
-
-
Method Detail
-
executeInternal
public void executeInternal() throws org.apache.maven.plugin.MojoExecutionException
Description copied from class:AbstractGeneratorMojo
Template Method which assumesAbstractGeneratorMojo.projectClassLoader
is set.- Specified by:
executeInternal
in classAbstractGeneratorMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-