| java.lang.Object org.openharmonise.vfs.metadata.PropertyCache
PropertyCache | public class PropertyCache implements ContextListener(Code) | | Properties are cached so that they are not constantly fetched from
the Harmonise server. When a property is requested from the cache and
there is a version identifier is specified it is compared with the
version identifier of the property in the cache. This way updates to
properties will be fetched into the cache even if there is a previous
version held. Properties can be requested either by the path to their
virtual file or by their fully qualified (i.e. namespace and name) name.
author: Matthew Large version: $Revision: 1.2 $ |
getInstance | public static PropertyCache getInstance()(Code) | | Returns the instance of the property cache. Follows the Singleton
pattern.
The property cache |
getPropertyByName | public Property getPropertyByName(String sNamespace, String sName, String sVersion)(Code) | | Returns a property.
Parameters: sNamespace - Namespace of property Parameters: sName - Name of property Parameters: sVersion - Version identifier of property Property or null if not found |
getPropertyByName | public Property getPropertyByName(String sNamespace, String sName)(Code) | | Returns a property.
Parameters: sNamespace - Namespace of property Parameters: sName - Name of property Property or null if not found |
getPropertyByPath | public Property getPropertyByPath(String sHREF, String sVersion)(Code) | | Returns a property.
Parameters: sHREF - Full path to virtual file for property Parameters: sVersion - Version identifier of property Property or null if not found |
getPropertyByPath | public Property getPropertyByPath(String sHREF)(Code) | | Returns a property.
Parameters: sHREF - Full path to virtual file for property. Property or null if not found |
getPropertyGroup | public PropertyGroup getPropertyGroup(String sHREF)(Code) | | Returns a property group.
Parameters: sHREF - Full path to virtual file for property group Property group or null if not found |
load | public void load(String sFilePath)(Code) | | Loads stored cache information from an XML file.
Parameters: sFilePath - Path to XML file |
save | public void save(String sFilePath)(Code) | | Saves cache information to an XML file.
Parameters: sFilePath - Full path to XML file |
|
|