| java.lang.Object org.apache.commons.chain.CatalogFactory org.apache.commons.chain.impl.CatalogFactoryBase
CatalogFactoryBase | public class CatalogFactoryBase extends CatalogFactory (Code) | | A simple implementation of
CatalogFactory .
author: Sean Schofield version: $Revision: 411876 $ $Date: 2006-06-05 19:02:19 +0100 (Mon, 05 Jun 2006) $ |
addCatalog | public void addCatalog(String name, Catalog catalog)(Code) | | Adds a named instance of Catalog to the factory (for subsequent
retrieval later).
Parameters: name - the name of the Catalog to add Parameters: catalog - the Catalog to add |
getCatalog | public Catalog getCatalog()(Code) | | Gets the default instance of Catalog associated with the factory
(if any); otherwise, return null .
the default Catalog instance |
getCatalog | public Catalog getCatalog(String name)(Code) | | Retrieves a Catalog instance by name (if any); otherwise
return null .
Parameters: name - the name of the Catalog to retrieve the specified Catalog |
getNames | public Iterator getNames()(Code) | | Return an Iterator over the set of named
Catalog s known to this
CatalogFactory .
If there are no known catalogs, an empty Iterator is returned.
An Iterator of the names of the Catalogs known by this factory. |
setCatalog | public void setCatalog(Catalog catalog)(Code) | | Sets the default instance of Catalog associated with the factory.
Parameters: catalog - the default Catalog instance |
Fields inherited from org.apache.commons.chain.CatalogFactory | final public static String DELIMITER(Code)(Java Doc)
|
|
|