Configurationpublic class SystemConfiguration extends MapConfiguration
END_TOKEN, EVENT_ADD_PROPERTY, EVENT_CLEAR, EVENT_CLEAR_PROPERTY, EVENT_READ_PROPERTY, EVENT_SET_PROPERTY, START_TOKENmap| Constructor | Description |
|---|---|
SystemConfiguration() |
Create a Configuration based on the system properties.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
setSystemProperties(java.lang.String fileName) |
The method allows system properties to be set from a property file.
|
static void |
setSystemProperties(java.lang.String basePath,
java.lang.String fileName) |
The method allows system properties to be set from a property file.
|
static void |
setSystemProperties(PropertiesConfiguration systemConfig) |
Set System properties from a configuration file.
|
addErrorLogListener, addProperty, append, clear, clearProperty, copy, createInterpolator, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDefaultListDelimiter, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getList, getList, getListDelimiter, getLogger, getLong, getLong, getLong, getProperties, getProperties, getShort, getShort, getShort, getString, getString, getStringArray, getSubstitutor, interpolate, interpolate, interpolatedConfiguration, interpolateHelper, isDelimiterParsingDisabled, isScalarValue, isThrowExceptionOnMissing, resolveContainerStore, setDefaultListDelimiter, setDelimiter, setDelimiterParsingDisabled, setListDelimiter, setLogger, setProperty, setThrowExceptionOnMissing, subsetaddConfigurationListener, addErrorListener, clearConfigurationListeners, clearErrorListeners, createErrorEvent, createEvent, fireError, fireEvent, getConfigurationListeners, getErrorListeners, isDetailEvents, removeConfigurationListener, removeErrorListener, setDetailEventsaddPropertyDirect, clearPropertyDirect, clone, containsKey, getKeys, getMap, getProperty, isEmpty, isTrimmingDisabled, setTrimmingDisabledpublic SystemConfiguration()
System.getProperties()public static void setSystemProperties(java.lang.String fileName) throws java.lang.Exception
fileName - The name of the property file.java.lang.Exception - if an error occurs.public static void setSystemProperties(java.lang.String basePath, java.lang.String fileName) throws java.lang.Exception
basePath - The base path to look for the property file.fileName - The name of the property file.java.lang.Exception - if an error occurs.public static void setSystemProperties(PropertiesConfiguration systemConfig)
systemConfig - The configuration containing the properties to be set.