org.apache.beehive.netui.core.chain.impl
Class CatalogFactoryBase
Object
CatalogFactory
CatalogFactoryBase
public class CatalogFactoryBase
- extends CatalogFactory
This is a simple CatalogFactory
implementation that supports a two step lifecycle
where Catalog
s are added and can then be retrieved. Once reading of catalogs starts,
no more catalogs can be added. This avoids an unnecessary synchronization point
for every catalog access and makes Catalog lookups fast.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CatalogFactoryBase
public CatalogFactoryBase()
setCatalog
public void setCatalog(Catalog catalog)
- Specified by:
setCatalog
in class CatalogFactory
getCatalog
public Catalog getCatalog()
- Specified by:
getCatalog
in class CatalogFactory
addCatalog
public void addCatalog(String name,
Catalog catalog)
- Specified by:
addCatalog
in class CatalogFactory
getCatalog
public Catalog getCatalog(String name)
- Specified by:
getCatalog
in class CatalogFactory