java.lang.Objectjavax.activation.CommandInfopublic class CommandInfoextends java.lang.ObjectCommandInfo(String verb, String className) String getCommandClass() String getCommandName() Object getCommandObject(DataHandler dh, ClassLoader loader)public CommandInfo(String verb, String className)
Constructor.
- Parameters:
verb- the command verbclassName- the command class name
public String getCommandClass()
Returns the command class name.
public String getCommandName()
Returns the command verb.
public Object getCommandObject(DataHandler dh, ClassLoader loader) throws IOException, ClassNotFoundException
Returns the instantiated bean. If the bean implementsCommandObject, itssetCommandContextmethod will be called.
- Parameters:
dh- the data handler describing the command dataloader- the class loader used to instantiate the bean