public class CommandInfo
extends java.lang.Object
Constructor and Description |
---|
CommandInfo(java.lang.String commandName,
java.lang.String commandClass)
Constructor for a CommandInfo
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandClass()
Return the implementation class name.
|
java.lang.String |
getCommandName()
Return the command name.
|
java.lang.Object |
getCommandObject(DataHandler dh,
java.lang.ClassLoader loader)
Instantiate and return a command JavaBean.
|
public CommandInfo(java.lang.String commandName, java.lang.String commandClass)
commandName
- the command namecommandClass
- the name of the command's implementation classpublic 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
dh
- a DataHandler that provides the data to be passed to the commandloader
- the ClassLoader to be used to instantiate the commandjava.io.IOException
- if there was a problem initializing the commandjava.lang.ClassNotFoundException
- if the command class could not be found