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, Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptioncreateBinder(NativeWebRequest webRequest, @Nullable Object target, String objectName) Create aWebDataBinderfor the given object.default WebDataBindercreateBinder(NativeWebRequest webRequest, @Nullable Object target, String objectName, ResolvableType targetType) Variant ofcreateBinder(NativeWebRequest, Object, String)with aResolvableTypefor which theDataBinderis created.
- 
Method Details- 
createBinderWebDataBinder createBinder(NativeWebRequest webRequest, @Nullable Object target, String objectName) throws Exception Create aWebDataBinderfor the given object.- Parameters:
- webRequest- the current request
- target- the object to create a data binder for, or- nullif creating a binder for a simple type
- objectName- 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
 
- 
createBinderdefault WebDataBinder createBinder(NativeWebRequest webRequest, @Nullable Object target, String objectName, ResolvableType targetType) throws Exception Variant ofcreateBinder(NativeWebRequest, Object, String)with aResolvableTypefor which theDataBinderis created. This may be used to construct the target, or otherwise provide more insight on how to initialize the binder.- Throws:
- Exception
- Since:
- 6.1
 
 
-