org.gjt.lindfors.pattern
Interface CommandInvoker


public interface CommandInvoker

Acts as the Invoker in Command pattern.

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

Since:
JDK1.2
Version:
$Revision: 1.3 $
Author:
Juha Lindfors
See Also:
Command

Method Summary
 void registerCommands(java.util.Properties props)
          Used by the clients (which can be callback targets or other objects) to register concrete Command implementations to this Invoker.
 

Method Detail

registerCommands

public void registerCommands(java.util.Properties props)
Used by the clients (which can be callback targets or other objects) to register concrete Command implementations to this Invoker.

The properies passed as parameters usually contain String, Command pairs that the invoker can use to find specific command objects by their keys.

Parameters:
props - String, Command pairs