|
Spring Framework | ||||||||
| 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,
java.lang.Object target,
java.lang.String objectName)
Create a new WebDataBinder for the given target object and
initialize it through a WebBindingInitializer. |
protected WebDataBinder |
createBinderInstance(java.lang.Object target,
java.lang.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,
java.lang.Object target,
java.lang.String objectName)
throws java.lang.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
java.lang.Exception - in case of invalid state or arguments
protected WebDataBinder createBinderInstance(java.lang.Object target,
java.lang.String objectName,
NativeWebRequest webRequest)
throws java.lang.Exception
WebRequestDataBinder.
target - the binding target or null for type conversion onlyobjectName - the binding target object namewebRequest - the current request
java.lang.Exception - in case of invalid state or arguments
protected void initBinder(WebDataBinder dataBinder,
NativeWebRequest webRequest)
throws java.lang.Exception
@InitBinder methods) after "global" initializaton
via WebBindingInitializer.
dataBinder - the data binder instance to customizewebRequest - the current request
java.lang.Exception - if initialization fails
|
Spring Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||