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:
WebDataBinderFactory
Creates a
ServletRequestDataBinder.- Since:
- 3.1
- Author:
- Rossen Stoyanchev
-
Constructor Summary
ConstructorsConstructorDescriptionServletRequestDataBinderFactory(@nullable List<InvocableHandlerMethod> binderMethods, @nullable WebBindingInitializer initializer) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ServletRequestDataBindercreateBinderInstance(@nullable Object target, String objectName, NativeWebRequest request) Returns an instance ofExtendedServletRequestDataBinder.Methods inherited from class InitBinderDataBinderFactory
initBinder, isBinderMethodApplicableMethods inherited from class DefaultDataBinderFactory
createBinder, createBinder, setMethodValidationApplicable
-
Constructor Details
-
ServletRequestDataBinderFactory
public ServletRequestDataBinderFactory(@nullable List<InvocableHandlerMethod> binderMethods, @nullable WebBindingInitializer initializer) Create a new instance.- Parameters:
binderMethods- one or more@InitBindermethodsinitializer- provides global data binder initialization
-
-
Method Details
-
createBinderInstance
protected ServletRequestDataBinder createBinderInstance(@nullable Object target, String objectName, NativeWebRequest request) throws Exception Returns an instance ofExtendedServletRequestDataBinder.- Overrides:
createBinderInstancein classDefaultDataBinderFactory- Parameters:
target- the binding target ornullfor type conversion onlyobjectName- the binding target object namerequest- the current request- Throws:
Exception- in case of invalid state or arguments
-