public class MapConfigurationSource<K,V> extends Object implements ConfigurationSource<K,V>
ConfigurationSource wrapper for accessing Maps and PropertiesNAMESPACE_DELIM| Constructor and Description |
|---|
MapConfigurationSource() |
MapConfigurationSource(Map<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
Map<K,V> |
get(String namespace)
Get a Map of key name and corresponding
IConfiguration for the specific namespace. |
V |
get(String namespace,
K key) |
V |
get(User user,
String namespace,
K key)
Get a configuration in the context to a
User |
Map<K,V> |
getMap()
Define a Map of key values; namespace is part of the key in format <namespace>.key
|
void |
setMap(Map<K,V> map)
Define a Map of key values; namespace is part of the key in format <namespace>.key
|
public V get(String namespace, K key)
get in interface ConfigurationSource<K,V>namespace - as Stringkey - as Kpublic V get(User user, String namespace, K key)
ConfigurationSourceUserget in interface ConfigurationSource<K,V>public Map<K,V> getMap()
public void setMap(Map<K,V> map)
public Map<K,V> get(String namespace)
ConfigurationSourceIConfiguration for the specific namespace.
get in interface ConfigurationSource<K,V>namespace - as StringIConfigurationCopyright © 2018. All rights reserved.