public class EmbeddedMojo
extends org.codehaus.mojo.exec.AbstractExecMojo
META-INF/spring/*.xml
and camel-*.xml
and starting up the context; then generating
the DOT file before closing the context down.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
applicationContextUri
The classpath based application context uri that spring wants to get.
|
protected boolean |
dotAggregationEnabled
Allows the routes from multiple contexts to be aggregated into one DOT file (in addition to the individual files)
|
protected boolean |
dotEnabled
Allows the DOT file generation to be disabled
|
protected java.lang.String |
duration
The duration to run the application for which by default is in milliseconds.
|
protected java.lang.String |
fileApplicationContextUri
The filesystem based application context uri that spring wants to get.
|
protected java.lang.String |
outputDirectory
The DOT File name used to generate the DOT diagram of the route definitions
|
Constructor and Description |
---|
EmbeddedMojo() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
createArguments() |
java.lang.ClassLoader |
createClassLoader(java.lang.ClassLoader parent) |
void |
execute()
This method will run the mojo
|
void |
executeWithoutWrapping() |
java.lang.String |
getApplicationContextUri() |
java.util.List<?> |
getClasspathElements() |
java.lang.String |
getDuration() |
java.lang.String |
getFileApplicationContextUri() |
java.lang.String |
getMainClass() |
java.lang.String |
getOutputDirectory()
Getter for property output directory.
|
boolean |
isDotAggregationEnabled() |
boolean |
isDotEnabled() |
protected void |
runCamel(java.lang.ClassLoader newLoader) |
void |
setApplicationContextUri(java.lang.String applicationContextUri) |
void |
setClasspathElements(java.util.List<?> classpathElements) |
void |
setDotAggregationEnabled(boolean dotAggregationEnabled) |
void |
setDotEnabled(boolean dotEnabled) |
void |
setDuration(java.lang.String duration) |
void |
setFileApplicationContextUri(java.lang.String fileApplicationContextUri) |
void |
setMainClass(java.lang.String mainClass) |
void |
setOutputDirectory(java.lang.String inOutputDirectory)
Setter for the output directory.
|
collectProjectArtifactsAndClasspath, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
protected java.lang.String duration
protected java.lang.String outputDirectory
protected boolean dotEnabled
protected boolean dotAggregationEnabled
protected java.lang.String applicationContextUri
protected java.lang.String fileApplicationContextUri
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void executeWithoutWrapping() throws java.net.MalformedURLException, java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
java.net.MalformedURLException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
public java.lang.String getOutputDirectory()
public void setOutputDirectory(java.lang.String inOutputDirectory)
inOutputDirectory
- The value of output directory.public java.util.List<?> getClasspathElements()
public void setClasspathElements(java.util.List<?> classpathElements)
public boolean isDotEnabled()
public void setDotEnabled(boolean dotEnabled)
public java.lang.String getDuration()
public void setDuration(java.lang.String duration)
public boolean isDotAggregationEnabled()
public void setDotAggregationEnabled(boolean dotAggregationEnabled)
public java.lang.String getApplicationContextUri()
public void setApplicationContextUri(java.lang.String applicationContextUri)
public java.lang.String getFileApplicationContextUri()
public void setFileApplicationContextUri(java.lang.String fileApplicationContextUri)
public java.lang.String getMainClass()
public void setMainClass(java.lang.String mainClass)
protected void runCamel(java.lang.ClassLoader newLoader) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException, java.lang.IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
protected java.lang.String[] createArguments()
public java.lang.ClassLoader createClassLoader(java.lang.ClassLoader parent) throws java.net.MalformedURLException
java.net.MalformedURLException
Copyright © 2007-2014 Red Hat, Inc.. All Rights Reserved.