java.lang.Object | +--com.ibm.commerce.registry.DeviceFmtRegistry
This is the DeviceFmtRegistry.
Field Summary | |
---|---|
protected
java.util.Hashtable |
cache |
protected
int |
cacheSize |
protected
static DeviceFmtRegistry |
singleton |
Fields inherited from interface com.ibm.commerce.registry. Registry |
COPYRIGHT |
Constructor Summary | |
---|---|
protected |
DeviceFmtRegistry() Default constructor for DeviceFmtRegistry. |
Method Summary | |
---|---|
void |
addElement(java.lang.String fmtid,
DeviceFormatAccessBean bean) Adds a DeviceFormatAccessBean to the cache. |
void |
addElement(java.lang.String fmtid, DeviceFormatAccessBean bean,
java.util.Hashtable aCache) Adds a DeviceFormatAccessBean to the given cache. |
DeviceFormatAccessBean |
find(java.lang.String fmtid) Gets a DeviceFormatAccessBean given a device format id. |
void |
initialize() Initializes the DeviceFmtRegistry. |
void |
refresh() Refreshes the device format regsitry. |
void |
removeAllElements() Removes all DeviceFormatAccessBean from cache. |
void |
removeElement(java.lang.String fmtid) Removes a Device format from the cache. |
static
DeviceFmtRegistry |
singleton() Returns a singleton DeviceFmtRegistry object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable cache
protected int cacheSize
protected static DeviceFmtRegistry singleton
Constructor Detail |
---|
protected DeviceFmtRegistry()
Method Detail |
---|
public void addElement(java.lang.String fmtid, DeviceFormatAccessBean bean)
bean
- the device format access beanpublic void addElement(java.lang.String fmtid, DeviceFormatAccessBean bean, java.util.Hashtable aCache)
bean
- the device format access beanpublic DeviceFormatAccessBean find(java.lang.String fmtid)
public void initialize() throws java.lang.Exception
initialize
in interface
Registry
java.lang.Exception
public void refresh() throws java.lang.Exception
refresh
in interface
Registry
java.lang.Exception
public void removeAllElements()
public void removeElement(java.lang.String fmtid)
public static DeviceFmtRegistry singleton()