public abstract class Command
extends java.lang.Object
| Constructor and Description |
|---|
Command() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.