javax.activation
public class CommandInfo extends Object
Constructor and Description |
---|
CommandInfo(String verb,
String className)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getCommandClass()
Returns the command class name.
|
String |
getCommandName()
Returns the command verb.
|
Object |
getCommandObject(DataHandler dh,
ClassLoader loader)
Returns the instantiated bean.
|
public String getCommandName()
public String getCommandClass()
public Object getCommandObject(DataHandler dh, ClassLoader loader) throws IOException, ClassNotFoundException
CommandObject
, its
setCommandContext
method will be called.dh
- the data handler describing the command dataloader
- the class loader used to instantiate the beanIOException
ClassNotFoundException