Commandpublic interface Command Command.java
Defines the behavior of a NamingShell command.
The method execute(Context, Vector) is how the NamingShell executes the
command. The Context parameter represents the Context the command operates
upon, and the Vector packages up any data necessary. Any data that the command
returns to the NamingShell is required to use a NamingShell accessor method.
Any unrecoverable error that a Command encounters should cause the Command
to throw a CommandException, and the shell will handle it gracefully. |
|