public class SysEnvPropertySource extends org.springframework.core.env.MapPropertySource
When getProperty(name) is called, name is checked. If no value is found, name is then converted into several aliases representing a few different ways it
might be represented as an environment variable. All of the aliases are then also checked.
foo.barBaz -> env.FOO_BAR_BAZ
FOO_BAR_BAZ
env.foo_bar_baz
foo_bar_baz
| Constructor and Description |
|---|
SysEnvPropertySource() |
SysEnvPropertySource(String name,
Map<String,Object> source) |
SysEnvPropertySource(String name,
Properties source) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearAliasCache() |
protected static Map<String,Object> |
convert(Properties properties) |
protected com.google.common.collect.ImmutableSet<String> |
getAliases(String name)
foo.barBaz -> env.FOO_BAR_BAZ
FOO_BAR_BAZ
env.foo_bar_baz
foo_bar_baz
|
protected Object |
getProperty(Set<String> aliases,
String original) |
Object |
getProperty(String name) |
public SysEnvPropertySource()
public SysEnvPropertySource(String name, Properties source)
public SysEnvPropertySource(String name, Map<String,Object> source)
public Object getProperty(String name)
getProperty in class org.springframework.core.env.MapPropertySourceprotected Object getProperty(Set<String> aliases, String original)
protected com.google.common.collect.ImmutableSet<String> getAliases(String name)
foo.barBaz -> env.FOO_BAR_BAZ
FOO_BAR_BAZ
env.foo_bar_baz
foo_bar_baz
protected static Map<String,Object> convert(Properties properties)
public void clearAliasCache()
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.