Interface WebDataBinderFactory
- All Known Implementing Classes:
DefaultDataBinderFactory,InitBinderDataBinderFactory,ServletRequestDataBinderFactory
public interface WebDataBinderFactory
A factory for creating a
WebDataBinder instance for a named target object.- Since:
- 3.1
- Author:
- Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptioncreateBinder(NativeWebRequest webRequest, Object target, String objectName) Create aWebDataBinderfor the given object.
-
Method Details
-
createBinder
WebDataBinder createBinder(NativeWebRequest webRequest, @Nullable Object target, String objectName) throws Exception Create aWebDataBinderfor the given object.- Parameters:
webRequest- the current requesttarget- the object to create a data binder for, ornullif creating a binder for a simple typeobjectName- the name of the target object- Returns:
- the created
WebDataBinderinstance, never null - Throws:
Exception- raised if the creation and initialization of the data binder fails
-