Package org.apache.commons.chain
Interface Catalog<C extends Context>
- Type Parameters:
C- Type of the context associated with this command
- All Known Implementing Classes:
CatalogBase
A
Catalog is a collection of named Commands (or
Chains) 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$ $Date$
- Author:
- Craig R. McClanahan
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddCommand(String name, CMD command) getCommand(String name) getNames()Return anIteratorover the set of named commands known to thisCatalog.
-
Field Details
-
CATALOG_KEY
A default context attribute for storing a defaultCatalog, provided as a convenience only.- See Also:
-
-
Method Details
-
addCommand
-
getCommand
-
getNames
Return anIteratorover 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.
-