com.sun.ebxml.registry.util
Class RegistryProperties

java.lang.Object
  |
  +--com.sun.ebxml.registry.util.RegistryProperties

public class RegistryProperties
extends java.lang.Object

Abstraction for Registry Configuration properties. Initial implementation just uses Java Property file, future implementation might acquire configuration info from XML. Thus, all java property methods are called via this abstraction. Registry Property File Search Order 1. If Property "ebxmlrr.properties", this value is used as the filename to load the ebxmlrr properties from. Skip to step 3 if this property is set and the properties successfully loaded. 2. If file Property{user.home}/.ebxmlrr.properties exists, the properties are loaded from here. 3. System default properties are read from the CLASSPATH. The first file named com/sun/ebxmlrr/util/ebxmlrr.properties will be used to set default Registry properties. These properties are overriden by the same named property set by either steps 1 or 2. When adding a new property, be sure to set a default value for the property in DEFAULT_REGISTRY_SYSTEM_PROPERTY_FILE. Property Priority 1. Highest priority: any java system properties including command line properties set with -D 2. Medium priority: any properties set in {user.home}/.ebxmlrr.properties 3. Lowest priority: any properties set in the Registry default property file


Method Summary
static RegistryProperties getInstance()
          Implement Singleton class, this method is only way to get this object.
 java.lang.String getProperty(java.lang.String propertyName)
          Provide a backdoor to get a property without adding a method to access the property.
 java.lang.String getProperty(java.lang.String propertyName, java.lang.String def)
          Method Declaration.
 java.util.Iterator getPropertyNamesStartingWith(java.lang.String prefix)
           
 void reloadProperties()
          This method is used to reload properties into memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RegistryProperties getInstance()
Implement Singleton class, this method is only way to get this object.


getProperty

public java.lang.String getProperty(java.lang.String propertyName)
Provide a backdoor to get a property without adding a method to access the property.


getProperty

public java.lang.String getProperty(java.lang.String propertyName,
                                    java.lang.String def)
Method Declaration.

Parameters:
propertyName -
def -
Returns:
See Also:

getPropertyNamesStartingWith

public java.util.Iterator getPropertyNamesStartingWith(java.lang.String prefix)

reloadProperties

public void reloadProperties()
This method is used to reload properties into memory.



Copyright © 2001-2003 OASIS. All Rights Reserved.