public class ValidationBindHandler extends AbstractBindHandler
BindHandler to apply Validators to bound results.DEFAULT| Constructor and Description | 
|---|
ValidationBindHandler(BindHandler parent,
                     org.springframework.validation.Validator... validators)  | 
ValidationBindHandler(org.springframework.validation.Validator... validators)  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
onFailurepublic ValidationBindHandler(org.springframework.validation.Validator... validators)
public ValidationBindHandler(BindHandler parent, org.springframework.validation.Validator... validators)
public boolean onStart(ConfigurationPropertyName name, Bindable<?> target, BindContext context)
BindHandleronStart in interface BindHandleronStart in class AbstractBindHandlername - 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 BindHandleronSuccess in class AbstractBindHandlername - the name of the element being boundtarget - the item being boundcontext - the bind contextresult - the bound result (never null)null)public void onFinish(ConfigurationPropertyName name, Bindable<?> target, BindContext context, Object result) throws Exception
BindHandleronFinish in interface BindHandleronFinish in class AbstractBindHandlername - 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 © 2017 Pivotal Software, Inc.. All rights reserved.