|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.xbus.base.core.config.PropertiesSource
public class PropertiesSource
This is the implementation of a ConfigSource wich uses the Java-Properties.
To map the hierarchy of the
Configuration, the keys of the
properties must consist of three parts divided by "_"
(e.g.System_MQ_Timeout).
| Constructor Summary | |
|---|---|
PropertiesSource(java.lang.String source)
The constructor builds the name of the properties-file: %XBUS_HOME%/etc/source.conf
Program which uses this class must be started with:
java -Dxbus.home="%XBUS_HOME%" |
|
| Method Summary | |
|---|---|
java.util.Hashtable |
readCache()
Reads the properties and fills a three-level hierarchie hashtable suitable for the Configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesSource(java.lang.String source)
%XBUS_HOME%/etc/source.conf
Program which uses this class must be started with:
java -Dxbus.home="%XBUS_HOME%"
source - the property source
XException - if any error occurs| Method Detail |
|---|
public java.util.Hashtable readCache()
Configuration.
readCache in interface ConfigSourceXException - if any error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||