Package | Description |
---|---|
org.springframework.boot.context.properties |
Support for external configuration properties.
|
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.bind.validation |
Binding validation support.
|
Modifier and Type | Method and Description |
---|---|
BindHandler |
ConfigurationPropertiesBindHandlerAdvisor.apply(BindHandler bindHandler)
Apply additional functionality to the source bind handler.
|
Modifier and Type | Method and Description |
---|---|
BindHandler |
ConfigurationPropertiesBindHandlerAdvisor.apply(BindHandler bindHandler)
Apply additional functionality to the source bind handler.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBindHandler
Abstract base class for
BindHandler implementations. |
Modifier and Type | Field and Description |
---|---|
static BindHandler |
BindHandler.DEFAULT
Default no-op bind handler.
|
Modifier and Type | Method and Description |
---|---|
<T> BindResult<T> |
Binder.bind(ConfigurationPropertyName name,
Bindable<T> target,
BindHandler handler)
Bind the specified target
Bindable using this binder's
property sources . |
<T> BindResult<T> |
Binder.bind(String name,
Bindable<T> target,
BindHandler handler)
Bind the specified target
Bindable using this binder's
property sources . |
<T> T |
Binder.bindOrCreate(ConfigurationPropertyName name,
Bindable<T> target,
BindHandler handler)
Bind the specified target
Bindable using this binder's
property sources or create a new instance using
the type of the Bindable if the result of the binding is null . |
<T> T |
Binder.bindOrCreate(String name,
Bindable<T> target,
BindHandler handler)
Bind the specified target
Bindable using this binder's
property sources or create a new instance using
the type of the Bindable if the result of the binding is null . |
static Binder |
Binder.get(org.springframework.core.env.Environment environment,
BindHandler defaultBindHandler)
Create a new
Binder instance from the specified environment. |
Constructor and Description |
---|
AbstractBindHandler(BindHandler parent)
Create a new binding handler instance with a specific parent.
|
Binder(Iterable<ConfigurationPropertySource> sources,
PlaceholdersResolver placeholdersResolver,
org.springframework.core.convert.ConversionService conversionService,
Consumer<org.springframework.beans.PropertyEditorRegistry> propertyEditorInitializer,
BindHandler defaultBindHandler)
Create a new
Binder instance for the specified sources. |
Modifier and Type | Class and Description |
---|---|
class |
IgnoreErrorsBindHandler
BindHandler that can be used to ignore binding errors. |
class |
IgnoreTopLevelConverterNotFoundBindHandler
BindHandler that can be used to ignore top-level
ConverterNotFoundException s. |
class |
NoUnboundElementsBindHandler
BindHandler to enforce that all configuration properties under the root name
have been bound. |
Constructor and Description |
---|
IgnoreErrorsBindHandler(BindHandler parent) |
IgnoreTopLevelConverterNotFoundBindHandler(BindHandler parent)
Create a new
IgnoreTopLevelConverterNotFoundBindHandler instance with a
specific parent. |
NoUnboundElementsBindHandler(BindHandler parent) |
NoUnboundElementsBindHandler(BindHandler parent,
Function<ConfigurationPropertySource,Boolean> filter) |
Modifier and Type | Class and Description |
---|---|
class |
ValidationBindHandler
BindHandler to apply Validators to bound results. |
Constructor and Description |
---|
ValidationBindHandler(BindHandler parent,
org.springframework.validation.Validator... validators) |
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.