org.gjt.lindfors.pattern
Interface Command


public interface Command

Command encapsulates a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable operations. Commands are an object oriented replacement for callbacks.

For more detailed documentation, refer to the Command Design Pattern .
See also: Command pattern in Design Patterns: Elements of Reusable Object-Oriented Software .

Since:
JDK 1.2
Version:
$Revision: 1.3 $
Author:
Juha Lindfors
See Also:
CommandInvoker

Method Summary
 void execute()
          Executes the callback command on the receiver.
 

Method Detail

execute

public void execute()
Executes the callback command on the receiver. This abstraction hides the actual command implementation. The client is only aware of the execute method, but not of the details where the actual command is executed.