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 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 String |
duration
The duration to run the application for which by default is in milliseconds.
|
protected String |
fileApplicationContextUri
The filesystem based application context uri that spring wants to get.
|
protected 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 String[] |
createArguments() |
ClassLoader |
createClassLoader(ClassLoader parent) |
void |
execute()
This method will run the mojo
|
void |
executeWithoutWrapping() |
String |
getApplicationContextUri() |
List<?> |
getClasspathElements() |
String |
getDuration() |
String |
getFileApplicationContextUri() |
String |
getMainClass() |
String |
getOutputDirectory()
Getter for property output directory.
|
boolean |
isDotAggregationEnabled() |
boolean |
isDotEnabled() |
protected void |
runCamel(ClassLoader newLoader) |
void |
setApplicationContextUri(String applicationContextUri) |
void |
setClasspathElements(List<?> classpathElements) |
void |
setDotAggregationEnabled(boolean dotAggregationEnabled) |
void |
setDotEnabled(boolean dotEnabled) |
void |
setDuration(String duration) |
void |
setFileApplicationContextUri(String fileApplicationContextUri) |
void |
setMainClass(String mainClass) |
void |
setOutputDirectory(String inOutputDirectory)
Setter for the output directory.
|
collectProjectArtifactsAndClasspath, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRootsprotected String duration
protected String outputDirectory
protected boolean dotEnabled
protected boolean dotAggregationEnabled
protected String applicationContextUri
protected String fileApplicationContextUri
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void executeWithoutWrapping()
throws MalformedURLException,
ClassNotFoundException,
NoSuchMethodException,
IllegalAccessException,
org.apache.maven.plugin.MojoExecutionException
MalformedURLExceptionClassNotFoundExceptionNoSuchMethodExceptionIllegalAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionpublic String getOutputDirectory()
public void setOutputDirectory(String inOutputDirectory)
inOutputDirectory - The value of output directory.public List<?> getClasspathElements()
public void setClasspathElements(List<?> classpathElements)
public boolean isDotEnabled()
public void setDotEnabled(boolean dotEnabled)
public String getDuration()
public void setDuration(String duration)
public boolean isDotAggregationEnabled()
public void setDotAggregationEnabled(boolean dotAggregationEnabled)
public String getApplicationContextUri()
public void setApplicationContextUri(String applicationContextUri)
public String getFileApplicationContextUri()
public void setFileApplicationContextUri(String fileApplicationContextUri)
public String getMainClass()
public void setMainClass(String mainClass)
protected void runCamel(ClassLoader newLoader) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
ClassNotFoundExceptionNoSuchMethodExceptionIllegalAccessExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected String[] createArguments()
public ClassLoader createClassLoader(ClassLoader parent) throws MalformedURLException
MalformedURLExceptionApache Camel