Example usage for org.springframework.beans BeanWrapperImpl registerCustomEditor

List of usage examples for org.springframework.beans BeanWrapperImpl registerCustomEditor

Introduction

In this page you can find the example usage for org.springframework.beans BeanWrapperImpl registerCustomEditor.

Prototype

@Override
    public void registerCustomEditor(@Nullable Class<?> requiredType, @Nullable String propertyPath,
            PropertyEditor propertyEditor) 

Source Link

Usage

From source file:org.sakaiproject.metaobj.utils.mvc.impl.BeanWrapperBase.java

protected BeanWrapperImpl createNestedWrapper(String parentPath, String nestedProperty) {
    BeanWrapperImpl nextWrapper = null;//from   w  ww .j av a2  s. c om

    nextWrapper = constructWrapper(this.getPropertyValue(nestedProperty),
            parentPath + NESTED_PROPERTY_SEPARATOR + nestedProperty);

    nestedBeanWrappers.put(nestedProperty, nextWrapper);

    for (Iterator i = customEditors.iterator(); i.hasNext();) {
        CustomEditorHolder holder = (CustomEditorHolder) i.next();
        nextWrapper.registerCustomEditor(holder.requiredType, holder.propertyPath, holder.propertyEditor);
    }

    return nextWrapper;
}