Top Description Constructors Methods
org.springframework.web.servlet.mvc.method.annotation

public Class ServletRequestDataBinderFactory

extends InitBinderDataBinderFactory
Class Inheritance
Imports
java.util.List, org.springframework.lang.Nullable, org.springframework.web.bind.ServletRequestDataBinder, org.springframework.web.bind.support.WebBindingInitializer, org.springframework.web.context.request.NativeWebRequest, org.springframework.web.method.annotation.InitBinderDataBinderFactory, org.springframework.web.method.support.InvocableHandlerMethod

Creates a ServletRequestDataBinder.
Author
Rossen Stoyanchev
Since
3.1

Constructor Summary

AccessConstructor and Description
public
ServletRequestDataBinderFactory(List<InvocableHandlerMethod>
one or more @InitBinder methods
binderMethods
,
WebBindingInitializer
provides global data binder initialization
initializer
)

Create a new instance.

Method Summary

Modifier and TypeMethod and Description
protected ServletRequestDataBinder
createBinderInstance(Object
the binding target or null for type conversion only
target
,
String
the binding target object name
objectName
,
NativeWebRequest
the current request
request
)

Overrides org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

Returns an instance of ExtendedServletRequestDataBinder.

Inherited from org.springframework.web.method.annotation.InitBinderDataBinderFactory:
initBinderisBinderMethodApplicable

Constructor Detail

ServletRequestDataBinderFactoryback to summary
public ServletRequestDataBinderFactory(List<InvocableHandlerMethod> binderMethods, WebBindingInitializer initializer)

Create a new instance.

Parameters
binderMethods:List<InvocableHandlerMethod>

one or more @InitBinder methods

initializer:WebBindingInitializer

provides global data binder initialization

Method Detail

createBinderInstanceback to summary
protected ServletRequestDataBinder createBinderInstance(Object target, String objectName, NativeWebRequest request) throws Exception

Overrides org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

Returns an instance of ExtendedServletRequestDataBinder.

Parameters
target:Object

Doc from org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

the binding target or null for type conversion only

objectName:String

Doc from org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

the binding target object name

request:NativeWebRequest

Doc from org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

the current request

Annotations
@Override
Exceptions
Exception:

Doc from org.springframework.web.bind.support.DefaultDataBinderFactory.createBinderInstance.

in case of invalid state or arguments