com.borland.jbuilder.runtime
Class JavaRunner

java.lang.Object
  |
  +--com.borland.jbuilder.runtime.JavaRunner

public abstract class JavaRunner
extends java.lang.Object
implements Runner


Constructor Summary
JavaRunner()
           
 
Method Summary
 java.lang.String getClassPath(JBProject project, java.util.Map propertyMap)
           
 java.lang.String getDebugClassName(JBProject project, java.util.Map propertyMap)
           
abstract  java.lang.String getInsertedVMParameters(JBProject project, java.util.Map propertyMap)
           
abstract  java.lang.String getMainClassName(JBProject project, java.util.Map propertyMap)
           
 java.lang.String getParameters(JBProject project, java.util.Map propertyMap)
           
protected  java.lang.String getUserDirVMPrefix(JBProject project)
          Provides a VM parameter that defines user.dir to point to the project's directory.
abstract  java.lang.String getUserVMParameters(JBProject project, java.util.Map propertyMap)
           
 void run(Browser browser, Project project, java.util.Map propertyMap, boolean debug)
          Runner implementations that provide a testbed environment will typically substitute their main class for the first class name and supply custom parameters to control the testbed as the final parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaRunner

public JavaRunner()
Method Detail

getMainClassName

public abstract java.lang.String getMainClassName(JBProject project,
                                                  java.util.Map propertyMap)

getDebugClassName

public java.lang.String getDebugClassName(JBProject project,
                                          java.util.Map propertyMap)

getUserDirVMPrefix

protected java.lang.String getUserDirVMPrefix(JBProject project)
Provides a VM parameter that defines user.dir to point to the project's directory.

getUserVMParameters

public abstract java.lang.String getUserVMParameters(JBProject project,
                                                     java.util.Map propertyMap)

getInsertedVMParameters

public abstract java.lang.String getInsertedVMParameters(JBProject project,
                                                         java.util.Map propertyMap)

getParameters

public java.lang.String getParameters(JBProject project,
                                      java.util.Map propertyMap)

getClassPath

public java.lang.String getClassPath(JBProject project,
                                     java.util.Map propertyMap)

run

public void run(Browser browser,
                Project project,
                java.util.Map propertyMap,
                boolean debug)

Runner implementations that provide a testbed environment will typically substitute their main class for the first class name and supply custom parameters to control the testbed as the final parameter.

Specified by:
run in interface Runner
Parameters:
className - The class selected by the user as the "main" class for the project.
classPath - The full classpath for the project, including all library and JDK-defined path entries.
vmParams - Any Java VM parameters specified by the user on the project's Run property page.
See Also:
JavaProcessTracker