Command class

To write a command interface, extend one or more of the three interfaces included in the command package. 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. 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 one can reuse the object.

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