|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ops4j.exec.DefaultJavaRunner
public class DefaultJavaRunner
Default Java Runner.
| Constructor Summary | |
|---|---|
DefaultJavaRunner()
Constructor. |
|
DefaultJavaRunner(boolean wait)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJavaRunner()
public DefaultJavaRunner(boolean wait)
wait - should wait for framework exis| Method Detail |
|---|
public void exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory)
throws ExecutionException
JavaRunner
exec in interface JavaRunnervmOptions - selected JVM optionsclasspath - application class pathmainClass - main program entry pointprogramOptions - program specific optionsjavaHome - java home directoryworkingDirectory - working directory
ExecutionException
public void exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory,
String[] envOptions)
throws ExecutionException
exec in interface JavaRunnervmOptions - selected JVM optionsclasspath - application class pathmainClass - main program entry pointprogramOptions - program specific optionsjavaHome - java home directoryworkingDirectory - working directoryenvOptions - optional environment variables
ExecutionExceptionpublic void shutdown()
shutdown in interface StoppableJavaRunnerpublic void waitForExit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||