org.ops4j.pax.runner.platform
Interface JavaRunner

All Known Subinterfaces:
StoppableJavaRunner
All Known Implementing Classes:
DefaultJavaRunner, InitDScriptRunner, InProcessJavaRunner, NoopJavaRunner, ScriptJavaRunner, ZipJavaRunner

public interface JavaRunner

Simple API for an external Java runner service.

Since:
March 14, 2008
Author:
Stuart McCulloch, Alin Dreghiciu (adreghiciu@gmail.com)

Method Summary
 void exec(java.lang.String[] vmOptions, java.lang.String[] classpath, java.lang.String mainClass, java.lang.String[] programOptions, java.lang.String javaHome, java.io.File workingDir)
          Starts the selected Java program, up to service implementation whether it waits for it to exit.
 

Method Detail

exec

void exec(java.lang.String[] vmOptions,
          java.lang.String[] classpath,
          java.lang.String mainClass,
          java.lang.String[] programOptions,
          java.lang.String javaHome,
          java.io.File workingDir)
          throws PlatformException
Starts the selected Java program, up to service implementation whether it waits for it to exit.

Parameters:
vmOptions - selected JVM options
classpath - application class path
mainClass - main program entry point
programOptions - program specific options
javaHome - java home directory
workingDir - working directory
Throws:
PlatformException - if something goes wrong


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.