public abstract class PropertySourceUtils extends Object
PropertySource
,
PropertySources
Constructor and Description |
---|
PropertySourceUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
String keyPrefix)
Return a Map of all values from the specified
PropertySources that start
with a particular key. |
static Map<String,Object> |
getSubProperties(org.springframework.core.env.PropertySources propertySources,
String rootPrefix,
String keyPrefix)
Return a Map of all values from the specified
PropertySources that start
with a particular key. |
public static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, String keyPrefix)
PropertySources
that start
with a particular key.propertySources
- the property sources to scankeyPrefix
- the key prefixes to testgetSubProperties(PropertySources, String, String)
public static Map<String,Object> getSubProperties(org.springframework.core.env.PropertySources propertySources, String rootPrefix, String keyPrefix)
PropertySources
that start
with a particular key.propertySources
- the property sources to scanrootPrefix
- a root prefix to be prepended to the keyPrefix (can be
null
)keyPrefix
- the key prefixes to testgetSubProperties(PropertySources, String, String)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.