Package | Description |
---|---|
org.springframework.boot.context.properties.bind |
Support for
@ConfigurationProperties binding. |
org.springframework.boot.context.properties.bind.handler |
General
BindHandler implementations. |
org.springframework.boot.context.properties.source |
Sources for external configuration properties.
|
Modifier and Type | Method and Description |
---|---|
Iterable<ConfigurationPropertySource> |
BindContext.getSources()
|
Constructor and Description |
---|
Binder(ConfigurationPropertySource... sources)
Create a new
Binder instance for the specified sources. |
Constructor and Description |
---|
Binder(Iterable<ConfigurationPropertySource> sources)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
ConversionService conversionService)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
ConversionService conversionService,
Consumer<PropertyEditorRegistry> propertyEditorInitializer)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
ConversionService conversionService,
Consumer<PropertyEditorRegistry> propertyEditorInitializer,
BindHandler defaultBindHandler)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
ConversionService conversionService,
Consumer<PropertyEditorRegistry> propertyEditorInitializer,
BindHandler defaultBindHandler,
BindConstructorProvider constructorProvider)
Create a new
Binder instance for the specified sources. |
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
List<ConversionService> conversionServices,
Consumer<PropertyEditorRegistry> propertyEditorInitializer,
BindHandler defaultBindHandler,
BindConstructorProvider constructorProvider)
Create a new
Binder instance for the specified sources. |
Constructor and Description |
---|
NoUnboundElementsBindHandler(BindHandler parent,
Function<ConfigurationPropertySource,Boolean> filter) |
Modifier and Type | Interface and Description |
---|---|
interface |
IterableConfigurationPropertySource
A
ConfigurationPropertySource with a fully Iterable set of entries. |
Modifier and Type | Class and Description |
---|---|
class |
MapConfigurationPropertySource
A
ConfigurationPropertySource backed by a Map and using standard name
mapping rules. |
Modifier and Type | Method and Description |
---|---|
default ConfigurationPropertySource |
ConfigurationPropertySource.filter(Predicate<ConfigurationPropertyName> filter)
Return a filtered variant of this source, containing only names that match the
given
Predicate . |
static ConfigurationPropertySource |
ConfigurationPropertySource.from(PropertySource<?> source)
Return a single new
ConfigurationPropertySource adapted from the given
Spring PropertySource or null if the source cannot be adapted. |
ConfigurationPropertySource |
ConfigurationProperty.getSource()
Return the
ConfigurationPropertySource that provided the property or
null if the source is unknown. |
default ConfigurationPropertySource |
ConfigurationPropertySource.withAliases(ConfigurationPropertyNameAliases aliases)
Return a variant of this source that supports name aliases.
|
default ConfigurationPropertySource |
ConfigurationPropertySource.withPrefix(String prefix)
Return a variant of this source that supports a prefix.
|
Modifier and Type | Method and Description |
---|---|
static Iterable<ConfigurationPropertySource> |
ConfigurationPropertySources.from(Iterable<PropertySource<?>> sources)
Return
Iterable containing new ConfigurationPropertySource
instances adapted from the given Spring PropertySources . |
static Iterable<ConfigurationPropertySource> |
ConfigurationPropertySources.from(PropertySource<?> source)
Return
Iterable containing a single new ConfigurationPropertySource
adapted from the given Spring PropertySource . |
static Iterable<ConfigurationPropertySource> |
ConfigurationPropertySources.get(Environment environment)
Return a set of
ConfigurationPropertySource instances that have previously
been attached to the Environment . |
Modifier and Type | Method and Description |
---|---|
Boolean |
UnboundElementsSourceFilter.apply(ConfigurationPropertySource configurationPropertySource) |
Modifier and Type | Method and Description |
---|---|
static ConfigurationPropertyCaching |
ConfigurationPropertyCaching.get(Iterable<ConfigurationPropertySource> sources)
Get for all specified configuration property sources.
|
static ConfigurationPropertyCaching |
ConfigurationPropertyCaching.get(Iterable<ConfigurationPropertySource> sources,
Object underlyingSource)
Get for a specific configuration property source in the specified configuration
property sources.
|