com.levigo.util.swing.action
Interface CommandFactory

All Known Subinterfaces:
NamedCommandFactory
All Known Implementing Classes:
BasicCommandFactory, DefaultCommandFactory

public interface CommandFactory

Interface for the command factory. This interface has to be implemented in the command factory. In the system can be more than one command factory but just one instance of each.

Version:
$Data$ $Revision$
Author:
l.boureanu@levigo.de

Method Summary
 Command getCommand(String key)
          Default constructor using the settings of the commands.properties file.
 

Method Detail

getCommand

Command getCommand(String key)
Default constructor using the settings of the commands.properties file. The factory reads all the class definition from this file.

Algorithm of the command creating:

first: lookup, if the command is already in the cache
second: create command, if not already in the cache otherwise next point.
third: return the created command.

Parameters:
key - of the command (ID)
Returns:
created Command


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.