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 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.
|
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() |
protected void |
runCamel(ClassLoader newLoader) |
void |
setApplicationContextUri(String applicationContextUri) |
void |
setClasspathElements(List<?> classpathElements) |
void |
setDuration(String duration) |
void |
setFileApplicationContextUri(String fileApplicationContextUri) |
void |
setMainClass(String mainClass) |
collectProjectArtifactsAndClasspath, findExecutableArtifact, hasCommandlineArgs, isSkip, parseCommandlineArgs, registerSourceRoots
protected String duration
protected String applicationContextUri
protected String fileApplicationContextUri
public void execute() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void executeWithoutWrapping() throws MalformedURLException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, org.apache.maven.plugin.MojoExecutionException
MalformedURLException
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
public List<?> getClasspathElements()
public void setClasspathElements(List<?> classpathElements)
public String getDuration()
public void setDuration(String duration)
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
ClassNotFoundException
NoSuchMethodException
IllegalAccessException
org.apache.maven.plugin.MojoExecutionException
protected String[] createArguments()
public ClassLoader createClassLoader(ClassLoader parent) throws MalformedURLException
MalformedURLException
Apache Camel