com.ibm.di.config.base
Class ConfigCache

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.String,BaseConfiguration>
          extended by com.ibm.di.config.base.ConfigCache
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,BaseConfiguration>

public class ConfigCache
extends java.util.Hashtable<java.lang.String,BaseConfiguration>

Class used by the MetamergeConfigImpl and MetamergeConfigXML classes as an internal cache of configurations.

See Also:
Serialized Form

Constructor Summary
ConfigCache()
           
 
Method Summary
 void addObject(java.lang.Object name, BaseConfiguration data)
          Adds new configuration to the cache.
 java.util.Vector<java.lang.String> getDirtyList()
           
 BaseConfiguration getObject(java.lang.Object name)
           
 void removeObject(java.lang.Object name)
          Removes specified configuration from the cache.
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigCache

public ConfigCache()
Method Detail

addObject

public void addObject(java.lang.Object name,
                      BaseConfiguration data)
Adds new configuration to the cache.

Parameters:
name - name of the new configuration
data - configuration represented by that name

getObject

public BaseConfiguration getObject(java.lang.Object name)
Parameters:
name - name of object
Returns:
configuration of the specified object

getDirtyList

public java.util.Vector<java.lang.String> getDirtyList()
Returns:
vector of all objects in the cache

removeObject

public void removeObject(java.lang.Object name)
Removes specified configuration from the cache.

Parameters:
name - name of configuration