Example usage for org.springframework.validation BeanPropertyBindingResult BeanPropertyBindingResult

List of usage examples for org.springframework.validation BeanPropertyBindingResult BeanPropertyBindingResult

Introduction

In this page you can find the example usage for org.springframework.validation BeanPropertyBindingResult BeanPropertyBindingResult.

Prototype

public BeanPropertyBindingResult(@Nullable Object target, String objectName, boolean autoGrowNestedPaths,
        int autoGrowCollectionLimit) 

Source Link

Document

Creates a new instance of the BeanPropertyBindingResult class.

Usage

From source file:org.springframework.validation.DataBinder.java

/**
 * Create the {@link AbstractPropertyBindingResult} instance using standard
 * JavaBean property access./*  ww  w .j  a  v  a2  s . c  om*/
 * @since 4.2.1
 */
protected AbstractPropertyBindingResult createBeanPropertyBindingResult() {
    BeanPropertyBindingResult result = new BeanPropertyBindingResult(getTarget(), getObjectName(),
            isAutoGrowNestedPaths(), getAutoGrowCollectionLimit());

    if (this.conversionService != null) {
        result.initConversion(this.conversionService);
    }
    if (this.messageCodesResolver != null) {
        result.setMessageCodesResolver(this.messageCodesResolver);
    }

    return result;
}