Package org.apache.commons.chain
Interface Catalog
-
- All Known Implementing Classes:
CatalogBase
public interface CatalogA
Catalogis a collection of namedCommands (orChains) that can be used to retrieve the set of commands that should be performed based on a symbolic identifier. Use of catalogs is optional, but convenient when there are multiple possible chains that can be selected and executed based on environmental conditions.- Version:
- $Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
- Author:
- Craig R. McClanahan
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCATALOG_KEYA default context attribute for storing a defaultCatalog, provided as a convenience only.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCommand(java.lang.String name, Command command)CommandgetCommand(java.lang.String name)java.util.IteratorgetNames()Return anIteratorover the set of named commands known to thisCatalog.
-
-
-
Field Detail
-
CATALOG_KEY
static final java.lang.String CATALOG_KEY
A default context attribute for storing a default
Catalog, provided as a convenience only.- See Also:
- Constant Field Values
-
-
Method Detail
-
addCommand
void addCommand(java.lang.String name, Command command)
-
getCommand
Command getCommand(java.lang.String name)
-
getNames
java.util.Iterator getNames()
Return an
Iteratorover the set of named commands known to thisCatalog. If there are no known commands, an empty Iterator is returned.- Returns:
- An iterator of the names in this Catalog.
-
-