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