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 AbstractApiMethodBaseMojoGenerates Camel Component based on a collection of APIs.
-
-
Field Summary
Fields Modifier and Type Field Description protected ApiProxy[]apisList of API names, proxies and code generation settings.protected static StringDEFAULT_EXCLUDE_PACKAGESprotected FromJavasourcefromJavasourceCommon 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 voidexecuteInternal()Template Method which assumesAbstractGeneratorMojo.projectClassLoaderis set.static StringgetApiMethod(String proxyClass, String classPrefix)static StringgetEndpointConfig(String proxyClass, String classPrefix)static StringgetEnumConstant(String enumValue)static StringgetNullableOptionValues(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.MojoExecutionExceptionDescription copied from class:AbstractGeneratorMojoTemplate Method which assumesAbstractGeneratorMojo.projectClassLoaderis set.- Specified by:
executeInternalin classAbstractGeneratorMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-