V
- as Value type
TODO: Add to unit test case@Component public class SpringStaticConfigurtationSource<V> extends Object implements ConfigurationSource<String,V>, org.springframework.context.ApplicationContextAware
StaticConfiguration
type from spring using namespace and name (key).NAMESPACE_DELIM
Constructor and Description |
---|
SpringStaticConfigurtationSource() |
Modifier and Type | Method and Description |
---|---|
Map<String,V> |
get(String namespace)
Deprecated.
|
V |
get(String namespace,
String key) |
V |
get(User user,
String namespace,
String key)
Get a configuration in the context to a
User |
void |
init() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
@PostConstruct public void init()
public V get(String namespace, String key)
get
in interface ConfigurationSource<String,V>
namespace
- as Stringkey
- as Kpublic V get(User user, String namespace, String key)
ConfigurationSource
User
get
in interface ConfigurationSource<String,V>
public Map<String,V> get(String namespace)
get
in interface ConfigurationSource<String,V>
namespace
- as StringIConfiguration
Copyright © 2018. All rights reserved.