|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.Command
public abstract class Command
Command provides the ability to invoke arbitrary Java code from within a Script. Standard implementations may exist to compile or execute tests, in the same JVM as the harness or its agent, in separate processes, or even on a separate machine. Custom implementations can also be used.
Constructor Summary | |
---|---|
Command()
|
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
Get the class loader to be used if this command needs to dynamically load additional classes. |
abstract Status |
run(java.lang.String[] args,
java.io.PrintWriter out1,
java.io.PrintWriter out2)
The method that that does the work of the command. |
void |
setClassLoader(java.lang.ClassLoader cl)
Set a class loader that to be used if this command needs to dynamically load additional classes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Command()
Method Detail |
---|
public abstract Status run(java.lang.String[] args, java.io.PrintWriter out1, java.io.PrintWriter out2)
args
- Command-specific options and argumentsout1
- A stream to which to report messages and errors.
This stream was previously called "log".out2
- An additional stream to which to write output.
This stream was previously called "ref".
public void setClassLoader(java.lang.ClassLoader cl)
cl
- the class loader to be usedgetClassLoader()
public java.lang.ClassLoader getClassLoader()
setClassLoader(java.lang.ClassLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |