Class ServletRequestDataBinderFactory
java.lang.Object
org.springframework.web.bind.support.DefaultDataBinderFactory
org.springframework.web.method.annotation.InitBinderDataBinderFactory
org.springframework.web.servlet.mvc.method.annotation.ServletRequestDataBinderFactory
- All Implemented Interfaces:
org.springframework.web.bind.support.WebDataBinderFactory
public class ServletRequestDataBinderFactory
extends org.springframework.web.method.annotation.InitBinderDataBinderFactory
Creates a
ServletRequestDataBinder
.- Since:
- 3.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorDescriptionServletRequestDataBinderFactory
(List<org.springframework.web.method.support.InvocableHandlerMethod> binderMethods, org.springframework.web.bind.support.WebBindingInitializer initializer) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.bind.ServletRequestDataBinder
createBinderInstance
(Object target, String objectName, org.springframework.web.context.request.NativeWebRequest request) Returns an instance ofExtendedServletRequestDataBinder
.Methods inherited from class org.springframework.web.method.annotation.InitBinderDataBinderFactory
initBinder, isBinderMethodApplicable
Methods inherited from class org.springframework.web.bind.support.DefaultDataBinderFactory
createBinder, createBinder, setMethodValidationApplicable
-
Constructor Details
-
ServletRequestDataBinderFactory
public ServletRequestDataBinderFactory(@Nullable List<org.springframework.web.method.support.InvocableHandlerMethod> binderMethods, @Nullable org.springframework.web.bind.support.WebBindingInitializer initializer) Create a new instance.- Parameters:
binderMethods
- one or more@InitBinder
methodsinitializer
- provides global data binder initialization
-
-
Method Details
-
createBinderInstance
protected org.springframework.web.bind.ServletRequestDataBinder createBinderInstance(@Nullable Object target, String objectName, org.springframework.web.context.request.NativeWebRequest request) throws Exception Returns an instance ofExtendedServletRequestDataBinder
.- Overrides:
createBinderInstance
in classorg.springframework.web.bind.support.DefaultDataBinderFactory
- Throws:
Exception
-