|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.chain.CatalogFactory
org.apache.commons.chain.impl.CatalogFactoryBase
A simple implementation of CatalogFactory.
| Constructor Summary | |
CatalogFactoryBase()
Construct an empty instance of CatalogFactoryBase. |
|
| Method Summary | |
void |
addCatalog(String name,
Catalog catalog)
Adds a named instance of Catalog to the factory (for subsequent retrieval later). |
Catalog |
getCatalog()
Gets the default instance of Catalog associated with the factory (if any); otherwise, return null. |
Catalog |
getCatalog(String name)
Retrieves a Catalog instance by name (if any); otherwise return null. |
Iterator |
getNames()
Return an Iterator over the set of named
Catalogs known to this CatalogFactory. |
void |
setCatalog(Catalog catalog)
Sets the default instance of Catalog associated with the factory. |
| Methods inherited from class org.apache.commons.chain.CatalogFactory |
clear, getInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CatalogFactoryBase()
Construct an empty instance of CatalogFactoryBase. This
constructor is intended solely for use by CatalogFactory.
| Method Detail |
public Catalog getCatalog()
CatalogFactoryGets the default instance of Catalog associated with the factory
(if any); otherwise, return null.
getCatalog in class CatalogFactorypublic void setCatalog(Catalog catalog)
CatalogFactorySets the default instance of Catalog associated with the factory.
setCatalog in class CatalogFactorycatalog - the default Catalog instancepublic Catalog getCatalog(String name)
CatalogFactoryRetrieves a Catalog instance by name (if any); otherwise
return null.
getCatalog in class CatalogFactoryname - the name of the Catalog to retrieve
public void addCatalog(String name,
Catalog catalog)
CatalogFactoryAdds a named instance of Catalog to the factory (for subsequent retrieval later).
addCatalog in class CatalogFactoryname - the name of the Catalog to addcatalog - the Catalog to addpublic Iterator getNames()
CatalogFactoryReturn an Iterator over the set of named
Catalogs known to this CatalogFactory.
If there are no known catalogs, an empty Iterator is returned.
getNames in class CatalogFactory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||