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
FieldsModifier and TypeFieldDescriptionprotected ApiProxy[]List of API names, proxies and code generation settings.protected static final Stringprotected FromJavasourceCommon Javasource code generation settings.Fields 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 TypeMethodDescriptionvoidTemplate 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
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
-
DEFAULT_EXCLUDE_PACKAGES
- See Also:
-
apis
List of API names, proxies and code generation settings. -
fromJavasource
Common Javasource code generation settings.
-
-
Constructor Details
-
ApiComponentGeneratorMojo
public ApiComponentGeneratorMojo()
-
-
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
-
getApiMethod
-
getEndpointConfig
-
getEnumConstant
-
getNullableOptionValues
-