Command class
To write a command interface, extend one or more of the three interfaces included in the com.ibm.websphere.command package. For more information on the com.ibm.websphere.command package, see Package com.ibm.websphere.command
. The base interface for all commands is the Command interface. This interface provides only the client-side interface for generic commands and declares three basic methods:
- isReadyToCallExecute. The client side calls this method before the command passes to the server for execution.
- execute. This method passes the command to the target and returns any data.
- reset. This method reverts output properties to their values before the execute method was called. This allows you to reuse the object.
The implementation class for your interface must contain implementations for the isReadyToCallExecute and reset methods.