Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.jdeveloper.runner
Class JavaOptionProvider

java.lang.Object
  extended by oracle.jdeveloper.runner.JavaOptionProvider

public abstract class JavaOptionProvider
extends java.lang.Object

An abstract which allows Java options and program options to be added to the command line before a Java run process is started. To add your JavaOptionProvider to the list of JavaOptionProviders that will be called when a Java run process is started, use the static method JStarter.addJavaOptionProvider(oracle.jdeveloper.runner.JavaOptionProvider). To remove your JavaOptionProvider from the list of JavaOptionProviders that will be called when a Java run process is started, use the static method JStarter.removeJavaOptionProvider(oracle.jdeveloper.runner.JavaOptionProvider).


Constructor Summary
JavaOptionProvider()
           
 
Method Summary
 java.lang.String[] getJavaOptions(JRunProcess jrunProcess)
          Returns the additional Java options that are required for starting this process.
 java.lang.String[] getProgramArguments(JRunProcess jrunProcess)
          Returns the additional program arguments that are required for starting this process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaOptionProvider

public JavaOptionProvider()
Method Detail

getJavaOptions

public java.lang.String[] getJavaOptions(JRunProcess jrunProcess)
Returns the additional Java options that are required for starting this process.

If this method is overridden to return non-null, it is good behavior to log a user readable message to the LogPage associated with the jrunProcess explaining why this is necessary.

To get the target Node from the jrunProcess, use the method RunProcess.getTarget(). To get the Project from the jrunProcess, use the method RunProcess.getProject(). To get the Workspace from the jrunProcess, use the method RunProcess.getWorkspace(). To get the Context from the jrunProcess, use the method RunProcess.getContext(). To get the LogPage from the jrunProcess, use the method RunProcess.getLogPage().

Parameters:
jrunProcess - the process to be started
Returns:
the additional Java options

getProgramArguments

public java.lang.String[] getProgramArguments(JRunProcess jrunProcess)
Returns the additional program arguments that are required for starting this process.

If this method is overridden to return non-null, it is good behavior to log a user readable message to the LogPage associated with the jrunProcess explaining why this is necessary.

To get the target Node from the jrunProcess, use the method RunProcess.getTarget(). To get the Project from the jrunProcess, use the method RunProcess.getProject(). To get the Workspace from the jrunProcess, use the method RunProcess.getWorkspace(). To get the Context from the jrunProcess, use the method RunProcess.getContext(). To get the LogPage from the jrunProcess, use the method RunProcess.getLogPage().

Parameters:
jrunProcess - the process to be started
Returns:
the additional program arguments

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

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