javax.activation
public class CommandInfo extends Object
Constructor Summary | |
---|---|
CommandInfo(String commandName, String commandClass)
Constructor for a CommandInfo
|
Method Summary | |
---|---|
String | getCommandClass()
Return the implementation class name.
|
String | getCommandName()
Return the command name.
|
Object | getCommandObject(DataHandler dh, ClassLoader loader)
Instantiate and return a command JavaBean.
|
Parameters: commandName the command name commandClass the name of the command's implementation class
Returns: the name of the command's implementation class; may be null
Returns: the command name
Parameters: dh a DataHandler that provides the data to be passed to the command loader the ClassLoader to be used to instantiate the command
Returns: a new command instance
Throws: IOException if there was a problem initializing the command ClassNotFoundException if the command class could not be found