|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.ebxml.registry.util.RegistryProperties
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 |
public static RegistryProperties getInstance()
public java.lang.String getProperty(java.lang.String propertyName)
public java.lang.String getProperty(java.lang.String propertyName, java.lang.String def)
propertyName
- def
-
public java.util.Iterator getPropertyNamesStartingWith(java.lang.String prefix)
public void reloadProperties()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |