org.apache.beehive.netui.core.chain.impl
Class CatalogFactoryBase

Object
  extended by CatalogFactory
      extended by CatalogFactoryBase

public class CatalogFactoryBase
extends CatalogFactory

This is a simple CatalogFactory implementation that supports a two step lifecycle where Catalogs 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.


Constructor Summary
CatalogFactoryBase()
           
 
Method Summary
 void addCatalog(String name, Catalog catalog)
           
 Catalog getCatalog()
           
 Catalog getCatalog(String name)
           
 void setCatalog(Catalog catalog)
           
 
Methods inherited from class CatalogFactory
getInstance, getInstance
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogFactoryBase

public CatalogFactoryBase()
Method Detail

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