Extension SDK

oracle.jdeveloper.runner
Class JStarter

java.lang.Object
  extended byoracle.ide.runner.Starter
      extended byoracle.jdeveloper.runner.JStarter

public class JStarter
extends Starter

A class that represents a way of starting a Java process.


Field Summary
protected  JRunProcess jrunProcess
          The JRunProcess that will be or has been started by this JStarter.
protected  RunConfiguration runConfiguration
          The RunConfiguration part of the project.
protected  java.lang.String[] target
          The target items for the java command line.
 
Fields inherited from class oracle.ide.runner.Starter
process, runProcess, startException
 
Constructor Summary
protected JStarter(JRunProcess jrunProcess, java.lang.String[] target)
          This constructor initializes fields, including jrunProcess, target and runConfiguration.
 
Method Summary
protected  boolean addJavaExecutableName(java.util.List list)
          Adds the Java executable name to the list of command line items.
protected  void addJavaOptions(java.util.List list)
          Adds the Java options to the list of command line items.
protected  boolean addJavaVmOption(java.util.List list)
          Adds the Java VM option to the list of command line items.
protected  void addProgramArguments(java.util.List list)
          Adds the program arguments to the list of command line items.
protected  java.lang.String getBootClassPath()
          Returns the boot class path.
protected  java.lang.String getClassPath()
          Returns the class path.
 Database getDatabase()
          Returns the database if this JStarter is starting a procedure in a database.
 java.lang.String[] getStartCommand()
          Returns the command line that will be executed to start the process.
 
Methods inherited from class oracle.ide.runner.Starter
canStart, canTerminate, canTerminateGracefully, finished, getExitCode, getProcess, getStartDirectory, getStartException, mustPrepareToStart, prepareToStart, reuseLogPage, start, terminate, terminateGracefully, waitForProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jrunProcess

protected JRunProcess jrunProcess
The JRunProcess that will be or has been started by this JStarter.


target

protected java.lang.String[] target
The target items for the java command line.


runConfiguration

protected RunConfiguration runConfiguration
The RunConfiguration part of the project.

Constructor Detail

JStarter

protected JStarter(JRunProcess jrunProcess,
                   java.lang.String[] target)
This constructor initializes fields, including jrunProcess, target and runConfiguration.

Method Detail

getDatabase

public Database getDatabase()
Returns the database if this JStarter is starting a procedure in a database.


getStartCommand

public java.lang.String[] getStartCommand()
Description copied from class: Starter
Returns the command line that will be executed to start the process.

The default behavior is to call the RunProcess.getStartCommand() method.

Overrides:
getStartCommand in class Starter
Returns:
the command line

addJavaExecutableName

protected boolean addJavaExecutableName(java.util.List list)
Adds the Java executable name to the list of command line items.

Parameters:
list - the command line items so far
Returns:
true if the Java executable name can be determined.

addJavaVmOption

protected boolean addJavaVmOption(java.util.List list)
Adds the Java VM option to the list of command line items.

The Java VM is specified by the RunConfiguration

Parameters:
list - the command line items so far
Returns:
true

addJavaOptions

protected void addJavaOptions(java.util.List list)
Adds the Java options to the list of command line items.

If the RunConfiguration specifies to pass proxy options to the process, these are added.

Parameters:
list - the command line items so far

getClassPath

protected java.lang.String getClassPath()
Returns the class path.


getBootClassPath

protected java.lang.String getBootClassPath()
Returns the boot class path.


addProgramArguments

protected void addProgramArguments(java.util.List list)
Adds the program arguments to the list of command line items.

The implementation here adds program arguments specified in the RunConfiguration.

Parameters:
list - the command line items so far

Extension SDK

 

Copyright ©1997, 2003, Oracle. All rights reserved.