@FunctionalInterface public interface ConfigurationPropertySource
ConfigurationProperties
.ConfigurationPropertyName
,
OriginTrackedValue
,
getConfigurationProperty(ConfigurationPropertyName)
Modifier and Type | Method and Description |
---|---|
default 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. |
default Object |
getUnderlyingSource()
Return the underlying source that is actually providing the properties.
|
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
.default 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 aliasesdefault Object getUnderlyingSource()
null
.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.