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. |
class |
BoundPropertiesTrackingBindHandler
BindHandler that can be used to track bound configuration properties. |
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(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,
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. |
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,
Validator... validators) |