public class PropertiesContext extends AbstractMap<String,String> implements BootstrapContext
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>ARGS, CONFIG_KEY_APP_DIR, CONFIG_KEY_APP_DIR_SLOT, CONFIG_KEY_APP_ID, CONFIG_KEY_BASE_DIR, CONFIG_KEY_BUNDLE_ID, CONFIG_KEY_BUNDLE_REF, CONFIG_KEY_BUNDLE_URI, CONFIG_KEY_FILETREE_CLEANUP, CONFIG_KEY_GC_DELAY, CONFIG_KEY_IGNORE_EXISTING, CONFIG_KEY_LAUNCH_PLUGINS, CONFIG_KEY_LOGGING, CONFIG_KEY_MAIN_MODULE, CONFIG_KEY_PRELOAD, CONFIG_KEY_PRELOAD_GUI, CONFIG_KEY_PREPARE_PLUGINS, CONFIG_KEY_SECURITY_SKIP, CONFIG_KEY_UUID, CONFIG_KEY_VERBOSE_LOADING_MILLIS, CONFIG_NAME, CURRENT, DEFAULT_BUNDLE_REF, DEFAULT_BUNDLE_URI, DEFAULT_GC_DELAY_MS, INTERPOLATION| Modifier and Type | Method and Description |
|---|---|
PropertiesContext |
addSystemProperties() |
static PropertiesContext |
empty() |
Set<Map.Entry<String,String>> |
entrySet() |
String |
get(Object key) |
String |
getInterpolated(String key)
Performs a
Map.get(Object) and replaces ${propName}/%{propName} with its value. |
PropertiesContext |
loadFromXML(InputStream xml) |
String |
put(String key,
String value) |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuespublic static PropertiesContext empty()
public PropertiesContext addSystemProperties()
public PropertiesContext loadFromXML(InputStream xml) throws InvalidPropertiesFormatException, IOException
public String getInterpolated(String key)
BootstrapContextMap.get(Object) and replaces ${propName}/%{propName} with its value.
Each reference is replaced once, left to right.getInterpolated in interface BootstrapContextkey - the lookup keynull if absentCopyright © 2013. All Rights Reserved.