public interface ConfigurationPropertySource
ConfigurationProperties
.ConfigurationPropertyName
,
OriginTrackedValue
,
getConfigurationProperty(ConfigurationPropertyName)
Modifier and Type | Method and Description |
---|---|
ConfigurationPropertyState |
containsDescendantOf(ConfigurationPropertyName name)
Returns if the source contains any descendants of the specified name.
|
default ConfigurationPropertySource |
filter(Predicate<ConfigurationPropertyName> filter)
Return a filtered variant of this source, containing only names that match the
given
Predicate . |
ConfigurationProperty |
getConfigurationProperty(ConfigurationPropertyName name)
Return a single
ConfigurationProperty from the source or null if no
property can be found. |
Object |
getUnderlyingSource()
Return the underlying
PropertySource . |
default ConfigurationPropertySource |
withAliases(ConfigurationPropertyNameAliases aliases)
Return a variant of this source that supports name aliases.
|
ConfigurationProperty getConfigurationProperty(ConfigurationPropertyName name)
ConfigurationProperty
from the source or null
if no
property can be found.name
- the name of the property (must not be null
)null
.ConfigurationPropertyState containsDescendantOf(ConfigurationPropertyName name)
ConfigurationPropertyState.PRESENT
or
ConfigurationPropertyState.ABSENT
if an answer can be determined or
ConfigurationPropertyState.UNKNOWN
if it's not possible to determine a
definitive answer.name
- the name to checkdefault ConfigurationPropertySource filter(Predicate<ConfigurationPropertyName> filter)
Predicate
.filter
- the filter to matchConfigurationPropertySource
instancedefault ConfigurationPropertySource withAliases(ConfigurationPropertyNameAliases aliases)
aliases
- a function that returns a stream of aliases for any given nameConfigurationPropertySource
instance supporting name aliasesObject getUnderlyingSource()
PropertySource
.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.