public class InitBinderDataBinderFactory extends DefaultDataBinderFactory
@InitBinder methods.| Constructor and Description | 
|---|
InitBinderDataBinderFactory(List<InvocableHandlerMethod> binderMethods,
                           WebBindingInitializer initializer)
Create a new instance. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
initBinder(WebDataBinder binder,
          NativeWebRequest request)
Initialize a WebDataBinder with  
@InitBinder methods. | 
protected boolean | 
isBinderMethodApplicable(HandlerMethod initBinderMethod,
                        WebDataBinder binder)
Return  
true if the given @InitBinder method should be
 invoked to initialize the given WebDataBinder. | 
createBinder, createBinderInstancepublic InitBinderDataBinderFactory(List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer)
binderMethods - @InitBinder methods, or nullinitializer - for global data binder intializationpublic void initBinder(WebDataBinder binder, NativeWebRequest request) throws Exception
@InitBinder methods.
 If the @InitBinder annotation specifies attributes names, it is
 invoked only if the names include the target object name.initBinder in class DefaultDataBinderFactorybinder - the data binder instance to customizerequest - the current requestException - if one of the invoked @InitBinder methods fail.protected boolean isBinderMethodApplicable(HandlerMethod initBinderMethod, WebDataBinder binder)
true if the given @InitBinder method should be
 invoked to initialize the given WebDataBinder.
 The default implementation checks if target object name is included
 in the attribute names specified in the @InitBinder annotation.