|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.event.EventSource
org.apache.commons.configuration.AbstractConfiguration
org.apache.commons.configuration.MapConfiguration
org.apache.commons.configuration.SystemConfiguration
A configuration based on the system properties.
Field Summary |
Fields inherited from class org.apache.commons.configuration.MapConfiguration |
map |
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration |
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKEN |
Constructor Summary | |
SystemConfiguration()
Create a Configuration based on the system properties. |
Method Summary | |
static void |
setSystemProperties(PropertiesConfiguration systemConfig)
Set System properties from a configuration file. |
static void |
setSystemProperties(String fileName)
The method allows system properties to be set from a property file. |
Methods inherited from class org.apache.commons.configuration.MapConfiguration |
addPropertyDirect, clearPropertyDirect, clone, containsKey, getKeys, getMap, getProperty, isEmpty |
Methods inherited from class org.apache.commons.configuration.event.EventSource |
addConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEvents |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemConfiguration()
System.getProperties()
Method Detail |
public static void setSystemProperties(String fileName) throws Exception
fileName
- The name of the property file.
Exception
- if an error occurs.public static void setSystemProperties(PropertiesConfiguration systemConfig)
systemConfig
- The configuration containing the properties to be set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |