| org.apache.commons.chain.Catalog
All known Subclasses: org.apache.commons.chain.impl.CatalogBase,
Catalog | public interface Catalog (Code) | | A
Catalog is a collection of named
Command s (or
Chain s) that can be used 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.
author: Craig R. McClanahan version: $Revision: 410386 $ $Date: 2006-05-30 22:48:31 +0100 (Tue, 30 May 2006) $ |
CATALOG_KEY | String CATALOG_KEY(Code) | | A default context attribute for storing a default
Catalog ,
provided as a convenience only.
|
addCommand | void addCommand(String name, Command command)(Code) | | Add a new name and associated
Command or
Chain to the set of named commands known to this
Catalog ,
replacing any previous command for that name.
Parameters: name - Name of the new command Parameters: command - Command or Chain to be returnedfor later lookups on this name |
getCommand | Command getCommand(String name)(Code) | | Return the
Command or
Chain associated with the
specified name, if any; otherwise, return null .
Parameters: name - Name for which a Command or Chainshould be retrieved The Command associated with the specified name. |
getNames | Iterator getNames()(Code) | | Return an Iterator over the set of named commands
known to this
Catalog . If there are no known commands,
an empty Iterator is returned.
An iterator of the names in this Catalog. |
|
|