spring-framework / org.springframework.web.bind.support / WebDataBinderFactory / createBinder

createBinder

abstract fun createBinder(webRequest: NativeWebRequest, @Nullable target: Any, objectName: String): WebDataBinder

Create a WebDataBinder for the given object.

Parameters

webRequest - the current request

target - the object to create a data binder for, or null if creating a binder for a simple type

objectName - the name of the target object

Exceptions

Exception - raised if the creation and initialization of the data binder fails

Return
the created WebDataBinder instance, never null