WebBindingInitializer for declarative configuration
in a Spring application context. Allows for reusing pre-configured
initializers with multiple controller/handlers.
setDirectFieldAccess, setMessageCodesResolver, setBindingErrorProcessor, setValidator(Validator), setConversionService(ConversionService), setPropertyEditorRegistrar
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private BindingErrorProcessor | |
| private ConversionService | |
| private Boolean | |
| private boolean | |
| private MessageCodesResolver | |
| private PropertyEditorRegistrar[] | |
| private Validator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final BindingErrorProcessor | |
| public final ConversionService | |
| public final MessageCodesResolver | |
| public final PropertyEditorRegistrar[] | |
| private static Class | |
| public final Validator | |
| public void | initBinder(WebDataBinder
the DataBinder to initialize binder)Implements org. |
| public boolean | isAutoGrowNestedPaths()
Return whether a binder should attempt to "auto-grow" a nested path that contains a null value. |
| public boolean | |
| public boolean | |
| public void | setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether a binder should attempt to "auto-grow" a nested path that contains a null value. |
| public final void | setBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor)
Set the strategy to use for processing binding errors, that is,
required field errors and |
| public final void | setConversionService(ConversionService conversionService)
Specify a ConversionService which will apply to every DataBinder. |
| public void | setDeclarativeBinding(boolean declarativeBinding)
Set whether to bind only fields intended for binding as described in
|
| public final void | setDirectFieldAccess(boolean directFieldAccess)
Set whether to use direct field access instead of bean property access. |
| public final void | setMessageCodesResolver(MessageCodesResolver messageCodesResolver)
Set the strategy to use for resolving errors into message codes. |
| public final void | setPropertyEditorRegistrar(PropertyEditorRegistrar propertyEditorRegistrar)
Specify a single PropertyEditorRegistrar to be applied to every DataBinder. |
| public final void | setPropertyEditorRegistrars(PropertyEditorRegistrar[] propertyEditorRegistrars)
Specify multiple PropertyEditorRegistrars to be applied to every DataBinder. |
| public final void |
| autoGrowNestedPaths | back to summary |
|---|---|
| private boolean autoGrowNestedPaths | |
| bindingErrorProcessor | back to summary |
|---|---|
| private BindingErrorProcessor bindingErrorProcessor
| |
| conversionService | back to summary |
|---|---|
| private ConversionService conversionService
| |
| declarativeBinding | back to summary |
|---|---|
| private Boolean declarativeBinding
| |
| directFieldAccess | back to summary |
|---|---|
| private boolean directFieldAccess | |
| messageCodesResolver | back to summary |
|---|---|
| private MessageCodesResolver messageCodesResolver
| |
| propertyEditorRegistrars | back to summary |
|---|---|
| private PropertyEditorRegistrar[] propertyEditorRegistrars
| |
| validator | back to summary |
|---|---|
| private Validator validator
| |
| ConfigurableWebBindingInitializer | back to summary |
|---|---|
| public ConfigurableWebBindingInitializer() | |
| getBindingErrorProcessor | back to summary |
|---|---|
| public final BindingErrorProcessor getBindingErrorProcessor() Return the strategy to use for processing binding errors.
| |
| getConversionService | back to summary |
|---|---|
| public final ConversionService getConversionService() Return the ConversionService which will apply to every DataBinder.
| |
| getMessageCodesResolver | back to summary |
|---|---|
| public final MessageCodesResolver getMessageCodesResolver() Return the strategy to use for resolving errors into message codes.
| |
| getPropertyEditorRegistrars | back to summary |
|---|---|
| public final PropertyEditorRegistrar[] getPropertyEditorRegistrars() Return the PropertyEditorRegistrars to be applied to every DataBinder.
| |
| getTargetType | back to summary |
|---|---|
private static Class
| |
| getValidator | back to summary |
|---|---|
| public final Validator getValidator() Return the Validator to apply after each binding step, if any.
| |
| initBinder | back to summary |
|---|---|
| public void initBinder(WebDataBinder binder) Implements org. Doc from org. Initialize the given DataBinder.
| |
| isAutoGrowNestedPaths | back to summary |
|---|---|
| public boolean isAutoGrowNestedPaths() Return whether a binder should attempt to "auto-grow" a nested path that contains a null value. | |
| isDeclarativeBinding | back to summary |
|---|---|
| public boolean isDeclarativeBinding() Return whether to bind only fields intended for binding.
| |
| isDirectFieldAccess | back to summary |
|---|---|
| public boolean isDirectFieldAccess() Return whether to use direct field access instead of bean property access. | |
| setAutoGrowNestedPaths | back to summary |
|---|---|
| public void setAutoGrowNestedPaths(boolean autoGrowNestedPaths) Set whether a binder should attempt to "auto-grow" a nested path that contains a null value. If "true", a null path location will be populated with a default object value and traversed instead of resulting in an exception. This flag also enables auto-growth of collection elements when accessing an out-of-bounds index. Default is "true" on a standard DataBinder. Note that this feature is only supported for bean property access (DataBinder's default mode), not for field access. | |
| setBindingErrorProcessor | back to summary |
|---|---|
| public final void setBindingErrorProcessor(BindingErrorProcessor bindingErrorProcessor) Set the strategy to use for processing binding errors, that is,
required field errors and Default is | |
| setConversionService | back to summary |
|---|---|
| public final void setConversionService(ConversionService conversionService) Specify a ConversionService which will apply to every DataBinder.
| |
| setDeclarativeBinding | back to summary |
|---|---|
| public void setDeclarativeBinding(boolean declarativeBinding) Set whether to bind only fields intended for binding as described in
| |
| setDirectFieldAccess | back to summary |
|---|---|
| public final void setDirectFieldAccess(boolean directFieldAccess) Set whether to use direct field access instead of bean property access. Default is | |
| setMessageCodesResolver | back to summary |
|---|---|
| public final void setMessageCodesResolver(MessageCodesResolver messageCodesResolver) Set the strategy to use for resolving errors into message codes. Applies the given strategy to all data binders used by this controller. Default is | |
| setPropertyEditorRegistrar | back to summary |
|---|---|
| public final void setPropertyEditorRegistrar(PropertyEditorRegistrar propertyEditorRegistrar) Specify a single PropertyEditorRegistrar to be applied to every DataBinder. | |
| setPropertyEditorRegistrars | back to summary |
|---|---|
| public final void setPropertyEditorRegistrars(PropertyEditorRegistrar[] propertyEditorRegistrars) Specify multiple PropertyEditorRegistrars to be applied to every DataBinder. | |
| setValidator | back to summary |
|---|---|
| public final void setValidator(Validator validator) Set the Validator to apply after each binding step. | |