org.moremotion.config
Class ConfigCache

java.lang.Object
  extended by org.moremotion.config.ConfigCache

public class ConfigCache
extends java.lang.Object

Version:
$Id: ConfigCache.java 66 2008-03-14 18:06:09Z erkan $

Constructor Summary
ConfigCache()
          Creates a new instance of ConfigCache
 
Method Summary
static boolean addUnit(java.lang.String type, java.lang.String name, ConfigUnit unit)
          Stores the given Configuration Unit in the internal cache.
static ConfigUnit getUnit(java.lang.String type, java.lang.String name)
          Returns the ConfigUnit associated with the specified type and name.
static void removeIdleUnits(java.lang.String refId)
          Removes the Configuration Units that are contained in the specified file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigCache

public ConfigCache()
Creates a new instance of ConfigCache

Method Detail

addUnit

public static boolean addUnit(java.lang.String type,
                              java.lang.String name,
                              ConfigUnit unit)
Stores the given Configuration Unit in the internal cache. If an unit with the same name already exits it is marked as as unusable before putting the new one onto it. This way the configuration manager classes such as DataSourceManager or ActionServiceManager can recognise and recompile it.


getUnit

public static ConfigUnit getUnit(java.lang.String type,
                                 java.lang.String name)
Returns the ConfigUnit associated with the specified type and name. If the type identifier is already contained in the name, i.e. "dataSource|products", the type parameter is ignored.

Parameters:
type - The Unit Type
name - The Unit Name

removeIdleUnits

public static void removeIdleUnits(java.lang.String refId)
Removes the Configuration Units that are contained in the specified file



Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.