public abstract class AbstractBindHandler extends Object implements BindHandler
BindHandler implementations.DEFAULT| Constructor and Description | 
|---|
AbstractBindHandler()
Create a new binding handler instance. 
 | 
AbstractBindHandler(BindHandler parent)
Create a new binding handler instance with a specific parent. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
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) calls). | 
void | 
onFinish(ConfigurationPropertyName name,
        Bindable<?> target,
        BindContext context,
        Object result)
Called when binding finishes, regardless of whether the property was bound or not. 
 | 
boolean | 
onStart(ConfigurationPropertyName name,
       Bindable<?> target,
       BindContext context)
Called when binding of an element starts but before any result has been determined. 
 | 
Object | 
onSuccess(ConfigurationPropertyName name,
         Bindable<?> target,
         BindContext context,
         Object result)
Called when binding of an element ends with a successful result. 
 | 
public AbstractBindHandler()
public AbstractBindHandler(BindHandler parent)
parent - the parent handlerpublic boolean onStart(ConfigurationPropertyName name, Bindable<?> target, BindContext context)
BindHandleronStart in interface BindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contexttrue if binding should proceedpublic Object onSuccess(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result)
BindHandleronSuccess in interface BindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contextresult - the bound result (never null)null)public Object onFailure(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Exception error) throws Exception
BindHandlerBindHandler.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) calls). Implementations may choose to swallow exceptions and
 return an alternative result.onFailure in interface BindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contexterror - the cause of the error (if the exception stands it may be re-thrown)null).Exception - if the binding isn't validpublic void onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) throws Exception
BindHandleronFinish in interface BindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contextresult - the bound result (may be null)Exception - if the binding isn't validCopyright © 2018 Pivotal Software, Inc.. All rights reserved.