Command class

Extend one or more of the three interfaces included in the command package to write a command interface. The base interface for all commands is the Command interface.

The Command interface provides only the client-side interface for generic commands and declares three basic methods:
  • isReadyToCallExecute. This method is called on the client side before the command runs on server.
  • execute. This method passes the command to the target and returns any data.
  • reset. This method reverts any output properties to the values they had before the execute method was called so that you can reuse the object.

The implementation class for your interface must contain implementations for the isReadyToCallExecute and reset methods.