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 |
---|---|
Bindable<?> |
ConfigurationPropertiesBean.asBindTarget()
|
Modifier and Type | Method and Description |
---|---|
Bindable<?> |
BindException.getTarget()
Return the target being bound.
|
static <E> Bindable<List<E>> |
Bindable.listOf(Class<E> elementType)
|
static <K,V> Bindable<Map<K,V>> |
Bindable.mapOf(Class<K> keyType,
Class<V> valueType)
|
static <T> Bindable<T> |
Bindable.of(Class<T> type)
Create a new
Bindable of the specified type. |
static <T> Bindable<T> |
Bindable.of(ResolvableType type)
Create a new
Bindable of the specified type. |
static <T> Bindable<T> |
Bindable.ofInstance(T instance)
Create a new
Bindable of the type of the specified instance with an
existing value equal to the instance. |
default <T> Bindable<T> |
BindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context)
Called when binding of an element starts but before any result has been determined.
|
<T> Bindable<T> |
AbstractBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
static <E> Bindable<Set<E>> |
Bindable.setOf(Class<E> elementType)
|
Bindable<T> |
Bindable.withAnnotations(Annotation... annotations)
Create an updated
Bindable instance with the specified annotations. |
Bindable<T> |
Bindable.withExistingValue(T existingValue)
Create an updated
Bindable instance with an existing value. |
Bindable<T> |
Bindable.withSuppliedValue(Supplier<T> suppliedValue)
Create an updated
Bindable instance with a value supplier. |
Modifier and Type | Method and Description |
---|---|
<T> BindResult<T> |
Binder.bind(ConfigurationPropertyName name,
Bindable<T> target)
Bind the specified target
Bindable using this binder's
property sources . |
<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)
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)
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 . |
Constructor<?> |
BindConstructorProvider.getBindConstructor(Bindable<?> bindable,
boolean isNestedConstructorBinding)
Return the bind constructor to use for the given bindable, or
null if
constructor binding is not supported. |
default Object |
BindHandler.onCreate(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result)
Called when binding of an element ends with an unbound result and a newly created
instance is about to be returned.
|
default Object |
BindHandler.onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error)
Called when binding fails for any reason (including failures from
BindHandler.onSuccess(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object) or BindHandler.onCreate(org.springframework.boot.context.properties.source.ConfigurationPropertyName, org.springframework.boot.context.properties.bind.Bindable<?>, org.springframework.boot.context.properties.bind.BindContext, java.lang.Object) calls). |
Object |
AbstractBindHandler.onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error) |
default void |
BindHandler.onFinish(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result)
Called when binding finishes with either bound or unbound result.
|
void |
AbstractBindHandler.onFinish(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
default <T> Bindable<T> |
BindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context)
Called when binding of an element starts but before any result has been determined.
|
<T> Bindable<T> |
AbstractBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
default Object |
BindHandler.onSuccess(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result)
Called when binding of an element ends with a successful result.
|
Object |
AbstractBindHandler.onSuccess(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
Modifier and Type | Method and Description |
---|---|
<T> Bindable<T> |
NoUnboundElementsBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
Modifier and Type | Method and Description |
---|---|
Object |
IgnoreErrorsBindHandler.onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error) |
Object |
IgnoreTopLevelConverterNotFoundBindHandler.onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error) |
void |
NoUnboundElementsBindHandler.onFinish(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
<T> Bindable<T> |
NoUnboundElementsBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
Object |
NoUnboundElementsBindHandler.onSuccess(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
Modifier and Type | Method and Description |
---|---|
<T> Bindable<T> |
ValidationBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
Modifier and Type | Method and Description |
---|---|
Object |
ValidationBindHandler.onFailure(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Exception error) |
void |
ValidationBindHandler.onFinish(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
<T> Bindable<T> |
ValidationBindHandler.onStart(ConfigurationPropertyName name,
Bindable<T> target,
BindContext context) |
Object |
ValidationBindHandler.onSuccess(ConfigurationPropertyName name,
Bindable<?> target,
BindContext context,
Object result) |
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.