|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.web.bind.support.DefaultDataBinderFactory
public class DefaultDataBinderFactory
Create a WebRequestDataBinder instance and initialize it with a
WebBindingInitializer.
| Constructor Summary | |
|---|---|
DefaultDataBinderFactory(WebBindingInitializer initializer)
Create new instance. |
|
| Method Summary | |
|---|---|
WebDataBinder |
createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
Create a new WebDataBinder for the given target object and
initialize it through a WebBindingInitializer. |
protected WebDataBinder |
createBinderInstance(Object target,
String objectName,
NativeWebRequest webRequest)
Extension point to create the WebDataBinder instance. |
protected void |
initBinder(WebDataBinder dataBinder,
NativeWebRequest webRequest)
Extension point to further initialize the created data binder instance (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDataBinderFactory(WebBindingInitializer initializer)
initializer - for global data binder intialization, or null| Method Detail |
|---|
public final WebDataBinder createBinder(NativeWebRequest webRequest,
Object target,
String objectName)
throws Exception
WebDataBinder for the given target object and
initialize it through a WebBindingInitializer.
createBinder in interface WebDataBinderFactorywebRequest - the current requesttarget - the object to create a data binder for, or null if creating a binder for a simple typeobjectName - the name of the target object
WebDataBinder instance, never null
Exception - in case of invalid state or arguments
protected WebDataBinder createBinderInstance(Object target,
String objectName,
NativeWebRequest webRequest)
throws Exception
WebRequestDataBinder.
target - the binding target or null for type conversion onlyobjectName - the binding target object namewebRequest - the current request
Exception - in case of invalid state or arguments
protected void initBinder(WebDataBinder dataBinder,
NativeWebRequest webRequest)
throws Exception
@InitBinder methods) after "global" initializaton
via WebBindingInitializer.
dataBinder - the data binder instance to customizewebRequest - the current request
Exception - if initialization fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||