uk.org.iscream.cms.server.componentmanager
Class ConfigurationCache

java.lang.Object
  |
  +--uk.org.iscream.cms.server.componentmanager.ConfigurationCache

public class ConfigurationCache
extends Object

ConfigurationCache class This is essentially a wrapper and cache for Configuration CORBA objects. The ConfigurationProxy creates an instance of this class for every Configuration that is requested. This class then hold the reference to the configuration, but also maintains a cache where the ConfigurationProxy can store cached property values to safe on CORBA requests.

Version:
$Id: ConfigurationCache.java,v 1.7 2002/05/21 16:47:17 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  Configuration _config
          The Configuration this configuration cache looks after
private  HashMap _propertyCache
          A hash that contains cached property values
static String REVISION
          The current CVS revision of this class
 
Constructor Summary
ConfigurationCache(Configuration config, HashMap propertyCache)
          Construct a ConfigurationCache
 
Method Summary
 Configuration getConfig()
          Obtains the reference to the CORBA configuration object this cache holds.
 HashMap getPropertyCache()
          Obtins the hash containing cached configuration property values.
 void setConfig(Configuration config)
          Sets this cache to hold a new CORBA Configuration object.
 void setPropertyCache(HashMap propertyCache)
          Sets this cache to hold a new property cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_propertyCache

private HashMap _propertyCache
A hash that contains cached property values


_config

private Configuration _config
The Configuration this configuration cache looks after

Constructor Detail

ConfigurationCache

public ConfigurationCache(Configuration config,
                          HashMap propertyCache)
Construct a ConfigurationCache

Parameters:
config - a reference to the CORBA Configuration object this cache will hold
propertyCache - a hashMap to hold cached properties
Method Detail

getPropertyCache

public HashMap getPropertyCache()
Obtins the hash containing cached configuration property values.

Returns:
the property cache

getConfig

public Configuration getConfig()
Obtains the reference to the CORBA configuration object this cache holds.

Returns:
the configuration object

setConfig

public void setConfig(Configuration config)
Sets this cache to hold a new CORBA Configuration object.

Parameters:
config - the new CORBA Configuration object

setPropertyCache

public void setPropertyCache(HashMap propertyCache)
Sets this cache to hold a new property cache.

Parameters:
propertyCache - the new hash map to containing a property cache


Copyright © 2000-2003 i-scream. All Rights Reserved.