Package org.springframework.core.convert

Examples of org.springframework.core.convert.Property


    return convertIfNecessary(propertyName, oldValue, newValue, pd.getPropertyType(), new TypeDescriptor(property(pd)));
  }

  private Property property(PropertyDescriptor pd) {
    GenericTypeAwarePropertyDescriptor typeAware = (GenericTypeAwarePropertyDescriptor) pd;
    return new Property(typeAware.getBeanClass(), typeAware.getReadMethod(), typeAware.getWriteMethod(), typeAware.getName());
  }
View Full Code Here


    }
    Method method = findGetterForProperty(name, type, target);
    if (method != null) {
      // Treat it like a property
      // The readerCache will only contain gettable properties (let's not worry about setters for now)
      Property property = new Property(type, method, null);
      TypeDescriptor typeDescriptor = new TypeDescriptor(property);
      this.readerCache.put(cacheKey, new InvokerPair(method, typeDescriptor));
      this.typeDescriptorCache.put(cacheKey, typeDescriptor);
      return true;
    }
View Full Code Here

        method = findGetterForProperty(name, type, target);
        if (method != null) {
          // TODO remove the duplication here between canRead and read
          // Treat it like a property
          // The readerCache will only contain gettable properties (let's not worry about setters for now)
          Property property = new Property(type, method, null);
          TypeDescriptor typeDescriptor = new TypeDescriptor(property);
          invoker = new InvokerPair(method, typeDescriptor);
          this.readerCache.put(cacheKey, invoker);
        }
      }
View Full Code Here

      return true;
    }
    Method method = findSetterForProperty(name, type, target);
    if (method != null) {
      // Treat it like a property
      Property property = new Property(type, null, method);
      TypeDescriptor typeDescriptor = new TypeDescriptor(property);
      this.writerCache.put(cacheKey, method);
      this.typeDescriptorCache.put(cacheKey, typeDescriptor);
      return true;
    }
View Full Code Here

    return convertIfNecessary(propertyName, oldValue, newValue, pd.getPropertyType(), new TypeDescriptor(property(pd)));
  }

  private Property property(PropertyDescriptor pd) {
    GenericTypeAwarePropertyDescriptor typeAware = (GenericTypeAwarePropertyDescriptor) pd;
    return new Property(typeAware.getBeanClass(), typeAware.getReadMethod(), typeAware.getWriteMethod());
  }
View Full Code Here

    }
    Method method = findGetterForProperty(name, type, target instanceof Class);
    if (method != null) {
      // Treat it like a property
      // The readerCache will only contain gettable properties (let's not worry about setters for now)
      Property property = new Property(type, method, null);
      TypeDescriptor typeDescriptor = new TypeDescriptor(property);
      this.readerCache.put(cacheKey, new InvokerPair(method, typeDescriptor));
      this.typeDescriptorCache.put(cacheKey, typeDescriptor);
      return true;
    }
View Full Code Here

        method = findGetterForProperty(name, type, target instanceof Class);
        if (method != null) {
          // TODO remove the duplication here between canRead and read
          // Treat it like a property
          // The readerCache will only contain gettable properties (let's not worry about setters for now)
          Property property = new Property(type, method, null);
          TypeDescriptor typeDescriptor = new TypeDescriptor(property);
          invoker = new InvokerPair(method, typeDescriptor);
          this.readerCache.put(cacheKey, invoker);
        }
      }
View Full Code Here

      return true;
    }
    Method method = findSetterForProperty(name, type, target instanceof Class);
    if (method != null) {
      // Treat it like a property
      Property property = new Property(type, null, method);
      TypeDescriptor typeDescriptor = new TypeDescriptor(property);
      this.writerCache.put(cacheKey, method);
      this.typeDescriptorCache.put(cacheKey, typeDescriptor);
      return true;
    }
View Full Code Here

    return convertIfNecessary(propertyName, oldValue, newValue, td.getType(), td);
  }

  private Property property(PropertyDescriptor pd) {
    GenericTypeAwarePropertyDescriptor typeAware = (GenericTypeAwarePropertyDescriptor) pd;
    return new Property(typeAware.getBeanClass(), typeAware.getReadMethod(), typeAware.getWriteMethod(), typeAware.getName());
  }
View Full Code Here

    }
    Method method = findGetterForProperty(name, type, target);
    if (method != null) {
      // Treat it like a property...
      // The readerCache will only contain gettable properties (let's not worry about setters for now).
      Property property = new Property(type, method, null);
      TypeDescriptor typeDescriptor = new TypeDescriptor(property);
      this.readerCache.put(cacheKey, new InvokerPair(method, typeDescriptor));
      this.typeDescriptorCache.put(cacheKey, typeDescriptor);
      return true;
    }
View Full Code Here

TOP

Related Classes of org.springframework.core.convert.Property

Copyright © 2018 www.massapicom. 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.