public class DefaultJavaRunner extends Object implements StoppableJavaRunner
Constructor and Description |
---|
DefaultJavaRunner()
Constructor.
|
DefaultJavaRunner(boolean wait)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory)
Starts the selected Java program, up to service implementation whether it waits for it to exit.
|
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory,
String[] envOptions)
Starts the selected Java program, up to service implementation whether it waits for it to exit.
|
void |
shutdown()
Stops the started java platform.
|
void |
waitForExit()
Wait till the framework process exits.
|
public DefaultJavaRunner()
public DefaultJavaRunner(boolean wait)
wait
- should wait for framework exispublic void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDirectory) throws ExecutionException
JavaRunner
exec
in interface JavaRunner
vmOptions
- selected JVM optionsclasspath
- application class pathmainClass
- main program entry pointprogramOptions
- program specific optionsjavaHome
- java home directoryworkingDirectory
- working directoryExecutionException
public void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDirectory, String[] envOptions) throws ExecutionException
exec
in interface JavaRunner
vmOptions
- selected JVM optionsclasspath
- application class pathmainClass
- main program entry pointprogramOptions
- program specific optionsjavaHome
- java home directoryworkingDirectory
- working directoryenvOptions
- optional environment variablesExecutionException
public void shutdown()
shutdown
in interface StoppableJavaRunner
public void waitForExit()
Copyright © 2006–2019 OPS4J - Open Participation Software for Java. All rights reserved.