public class RemappedPropertySource extends org.springframework.core.env.EnumerablePropertySource<String>
PropertySource that supports aliasing/renaming of keys. For alias the key foo to the key
{bar} whenever either of the values are looked up they will return the same value. This differs from setting
foo=${bar}, in that if the value of bar is null, null is returned,
if ${bar} was used, an exception would be thrown due to the unresolvable property bar.| Constructor and Description |
|---|
RemappedPropertySource(String name,
Map<String,String> aliasMap,
org.springframework.core.env.Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getProperty(String name) |
String[] |
getPropertyNames() |
int |
hashCode() |
public Object getProperty(String name)
getProperty in class org.springframework.core.env.PropertySource<String>public String[] getPropertyNames()
getPropertyNames in class org.springframework.core.env.EnumerablePropertySource<String>public boolean equals(Object o)
equals in class org.springframework.core.env.PropertySource<String>public int hashCode()
hashCode in class org.springframework.core.env.PropertySource<String>Copyright © 2017–2018 Okta. All rights reserved.