public class XatkitEnvironmentConfiguration extends MapConfiguration
MapConfiguration initialized with System.getenv() variables.
Unlike EnvironmentConfiguration, XatkitEnvironmentConfiguration
allows to add new properties, and remove/clear loaded properties. This behavior is needed by Xatkit internal
classes, that dynamically add properties that can be reused by multiple components.
Note that updating properties initialized from System.getenv() can lead to unexpected behavior.
map| Constructor and Description |
|---|
XatkitEnvironmentConfiguration()
Creates a
XatkitEnvironmentConfiguration initialized with System.getenv() values. |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
containsKeyInternal(String key)
Returns
true if the configuration contains the provided key, false otherwise. |
protected Object |
getPropertyInternal(String key)
Retrieves the value associated to the provided
key. |
addPropertyDirect, clearPropertyDirect, clone, getKeysInternal, getMap, isEmptyInternal, isTrimmingDisabled, setTrimmingDisabled, sizeInternaladdErrorLogListener, addProperty, addPropertyInternal, append, beginRead, beginWrite, clear, clearInternal, clearProperty, cloneInterpolator, containsKey, copy, endRead, endWrite, get, get, getArray, getArray, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getCollection, getCollection, getConfigurationDecoder, getConversionHandler, getDouble, getDouble, getDouble, getEncodedString, getEncodedString, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getInterpolator, getKeys, getKeys, getKeysInternal, getList, getList, getList, getList, getListDelimiterHandler, getLogger, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getSynchronizer, immutableSubset, initLogger, installInterpolator, interpolate, interpolate, interpolatedConfiguration, isEmpty, isScalarValue, isThrowExceptionOnMissing, lock, setConfigurationDecoder, setConversionHandler, setDefaultLookups, setInterpolator, setListDelimiterHandler, setLogger, setParentInterpolator, setPrefixLookups, setProperty, setPropertyInternal, setSynchronizer, setThrowExceptionOnMissing, size, subset, unlockaddEventListener, clearErrorListeners, clearEventListeners, copyEventListeners, createErrorEvent, createEvent, fireError, fireEvent, getEventListenerRegistrations, getEventListeners, isDetailEvents, removeEventListener, setDetailEventspublic XatkitEnvironmentConfiguration()
XatkitEnvironmentConfiguration initialized with System.getenv() values.protected Object getPropertyInternal(String key)
key.
This method first looks for an exact match of the provided key. If there is no value associated to it
(i.e. the method returns null) an additional lookup for environment variables is performed for key.toUpperCase().replaceAll("\\.", "_"). See
the documentation
for additional information.
getPropertyInternal in class MapConfigurationkey - the key of the property to retrievenull otherwisetranslateToEnvironmentVariable(String)protected boolean containsKeyInternal(String key)
true if the configuration contains the provided key, false otherwise.
This method first looks for an exact match of the provided key. If there is no value associated to it
(i.e. the method returns false) an additional lookup for environment variables is performed for key.toUpperCase().replaceAll("\\.", "_"). See
the documentation
for additional information.
containsKeyInternal in class MapConfigurationkey - the key of the property to checktrue if the configuration contains the provided key, false otherwiseCopyright © 2020 SOM Research Lab. All rights reserved.