Examples of convertForProperty()


Examples of org.springframework.beans.BeanWrapperImpl.convertForProperty()

            valueResolver.resolveValueIfNecessary("bean property '" + propertyName + "'", originalValue);
        // Possibly store converted value in merged bean definition,
        // in order to avoid re-conversion for every created bean instance.
        if (resolvedValue == originalValue) {
          if (bwi != null && !PropertyAccessorUtils.isNestedOrIndexedProperty(propertyName)) {
            pv.setConvertedValue(bwi.convertForProperty(resolvedValue, propertyName));
          }
          deepCopy.add(pv);
        }
        else if (originalValue instanceof TypedStringValue &&
            bwi != null && !PropertyAccessorUtils.isNestedOrIndexedProperty(propertyName)) {
View Full Code Here

Examples of org.springframework.beans.BeanWrapperImpl.convertForProperty()

          }
          deepCopy.add(pv);
        }
        else if (originalValue instanceof TypedStringValue &&
            bwi != null && !PropertyAccessorUtils.isNestedOrIndexedProperty(propertyName)) {
          pv.setConvertedValue(bwi.convertForProperty(resolvedValue, propertyName));
          deepCopy.add(pv);
        }
        else {
          resolveNecessary = true;
          deepCopy.add(new PropertyValue(pv, resolvedValue));
View Full Code Here

Examples of org.springframework.beans.BeanWrapperImpl.convertForProperty()

            // verify type-compatibility
            BeanWrapperImpl wrapper = new BeanWrapperImpl(hkp);
            Class<?> requiredType = wrapper.getPropertyType(terminalProp);
            try {
                // convert for destination type
                map.put(fullpath, wrapper.convertForProperty(value,terminalProp));
            } catch(TypeMismatchException tme) {
                TypeMismatchException tme2 =
                    new TypeMismatchException(
                            new PropertyChangeEvent(
                                    hkp,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.