Class BoundPropertiesTrackingBindHandler
java.lang.Object
org.springframework.boot.context.properties.bind.AbstractBindHandler
org.springframework.boot.context.properties.bind.BoundPropertiesTrackingBindHandler
- All Implemented Interfaces:
BindHandler
BindHandler that can be used to track bound configuration properties.- Since:
- 2.3.0
- Author:
- Madhura Bhave
-
Field Summary
Fields inherited from interface org.springframework.boot.context.properties.bind.BindHandler
DEFAULT -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiononSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) Called when binding of an element ends with a successful result.Methods inherited from class org.springframework.boot.context.properties.bind.AbstractBindHandler
onFailure, onFinish, onStartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.context.properties.bind.BindHandler
onCreate
-
Constructor Details
-
BoundPropertiesTrackingBindHandler
-
-
Method Details
-
onSuccess
public Object onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) Description copied from interface:BindHandlerCalled when binding of an element ends with a successful result. Implementations may change the ultimately returned result or perform addition validation.- Specified by:
onSuccessin interfaceBindHandler- Overrides:
onSuccessin classAbstractBindHandler- Parameters:
name- the name of the element being boundtarget- the item being boundcontext- the bind contextresult- the bound result (nevernull)- Returns:
- the actual result that should be used (may be
null)
-