public abstract class JavaOptionProvider
extends java.lang.Object
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 and Description |
---|
JavaOptionProvider() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String[] getJavaOptions(JRunProcess jrunProcess)
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()
.
jrunProcess
- the process to be startedpublic java.lang.String[] getProgramArguments(JRunProcess jrunProcess)
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()
.
jrunProcess
- the process to be started