Package org.apache.camel.maven.packaging
Class GenerateInvokeOnHeaderMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.camel.maven.packaging.AbstractGeneratorMojo
org.apache.camel.maven.packaging.GenerateInvokeOnHeaderMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate-invoke-on-header",
threadSafe=true,
defaultPhase=PROCESS_CLASSES,
requiresDependencyCollection=COMPILE,
requiresDependencyResolution=COMPILE)
public class GenerateInvokeOnHeaderMojo
extends AbstractGeneratorMojo
Factory for generating code for @InvokeOnHeader.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe project build directorystatic final org.jboss.jandex.DotNameprotected Fileprotected FileFields inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
buildContext, GENERATED_MSG, NL, project, projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionGenerateInvokeOnHeaderMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext) -
Method Summary
Methods inherited from class org.apache.camel.maven.packaging.AbstractGeneratorMojo
addResourceDirectory, cache, canonicalClassName, createProperties, createProperties, execute, findConfigurations, format, getProjectClassLoader, haveResourcesChanged, isJsonFile, loadClass, newTreeSet, refresh, refresh, updateResource, updateResource, velocityMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
HEADER_ANNOTATION
public static final org.jboss.jandex.DotName HEADER_ANNOTATION -
buildDir
The project build directory -
sourcesOutputDir
-
resourcesOutputDir
@Parameter(defaultValue="${project.basedir}/src/generated/resources") protected File resourcesOutputDir
-
-
Constructor Details
-
GenerateInvokeOnHeaderMojo
@Inject public GenerateInvokeOnHeaderMojo(org.apache.maven.project.MavenProjectHelper projectHelper, org.codehaus.plexus.build.BuildContext buildContext)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
createInvokeOnHeaderFactory
protected void createInvokeOnHeaderFactory(String fqn, Set<GenerateInvokeOnHeaderMojo.InvokeOnHeaderModel> models) throws IOException - Throws:
IOException
-
bindArg
-