WebRequestDataBinder instance and initialize it with a
WebBindingInitializer.
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefaultDataBinderFactory.MethodValidationInitializer
Excludes Bean Validation if the method parameter has |
| Modifier and Type | Field and Description |
|---|---|
| private final WebBindingInitializer | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | DefaultDataBinderFactory(WebBindingInitializer
for global data binder initialization
(or initializer)null if none)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public final WebDataBinder | createBinder(NativeWebRequest
the current request webRequest, Object the object to create a data binder for,
or target, String null if creating a binder for a simple typethe name of the target object objectName)Implements org. WebDataBinder for the given target object and
initialize it through a WebBindingInitializer.
|
| public final WebDataBinder | createBinder(NativeWebRequest webRequest, Object target, String objectName, ResolvableType type)
Overrides default org. createBinder(NativeWebRequest, Object, String) with a
ResolvableType for which the DataBinder is created.
|
| protected WebDataBinder | createBinderInstance(Object
the binding target or target, String null for type conversion onlythe binding target object name objectName, NativeWebRequest the current request webRequest)Extension point to create the WebDataBinder instance. |
| private WebDataBinder | createBinderInternal(NativeWebRequest webRequest, Object target, String objectName, ResolvableType type)
|
| protected void | initBinder(WebDataBinder
the data binder instance to customize dataBinder, NativeWebRequest the current request webRequest)Extension point to further initialize the created data binder instance
(e.g. with |
| public void | setMethodValidationApplicable(boolean methodValidationApplicable)
Configure flag to signal whether validation will be applied to handler
method arguments, which is the case if Bean Validation is enabled in
Spring MVC, and method parameters have |
| initializer | back to summary |
|---|---|
| private final WebBindingInitializer initializer
| |
| methodValidationApplicable | back to summary |
|---|---|
| private boolean methodValidationApplicable | |
| DefaultDataBinderFactory | back to summary |
|---|---|
| public DefaultDataBinderFactory(WebBindingInitializer initializer) Create a new
| |
| createBinder | back to summary |
|---|---|
| public final WebDataBinder createBinder(NativeWebRequest webRequest, Object target, String objectName, ResolvableType type) throws Exception Overrides default org. Doc from org. Variant of By default, if the parameter has
| |
| createBinderInstance | back to summary |
|---|---|
| protected WebDataBinder createBinderInstance(Object target, String objectName, NativeWebRequest webRequest) throws Exception Extension point to create the WebDataBinder instance.
By default, this is
| |
| createBinderInternal | back to summary |
|---|---|
| private WebDataBinder createBinderInternal(NativeWebRequest webRequest, Object target, String objectName, ResolvableType type) throws Exception | |
| initBinder | back to summary |
|---|---|
| protected void initBinder(WebDataBinder dataBinder, NativeWebRequest webRequest) throws Exception Extension point to further initialize the created data binder instance
(e.g. with
| |
| setMethodValidationApplicable | back to summary |
|---|---|
| public void setMethodValidationApplicable(boolean methodValidationApplicable) Configure flag to signal whether validation will be applied to handler
method arguments, which is the case if Bean Validation is enabled in
Spring MVC, and method parameters have
| |
@Valid.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void |
| MethodValidationInitializer | back to summary |
|---|---|
| private MethodValidationInitializer() | |
| initBinder | back to summary |
|---|---|
| public static void initBinder(DataBinder binder, MethodParameter parameter) | |