spring-framework / org.springframework.web.method.annotation / InitBinderDataBinderFactory

InitBinderDataBinderFactory

open class InitBinderDataBinderFactory : DefaultDataBinderFactory

Adds initialization to a WebDataBinder via @InitBinder methods.

Author
Rossen Stoyanchev

Since
3.1

Constructors

<init>

InitBinderDataBinderFactory(binderMethods: MutableList<InvocableHandlerMethod>, initializer: WebBindingInitializer)

Create a new InitBinderDataBinderFactory instance.

Functions

initBinder

open fun initBinder(binder: WebDataBinder, request: NativeWebRequest): Unit

Initialize a WebDataBinder with @InitBinder methods. If the @InitBinder annotation specifies attributes names, it is invoked only if the names include the target object name.

Inherited Functions

createBinder

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

Create a new WebDataBinder for the given target object and initialize it through a WebBindingInitializer.

Inheritors

ServletRequestDataBinderFactory

open class ServletRequestDataBinderFactory : InitBinderDataBinderFactory

Creates a ServletRequestDataBinder.