List of usage examples for org.springframework.beans GenericTypeAwarePropertyDescriptor getBeanClass
public Class<?> getBeanClass()
From source file:org.springframework.beans.BeanWrapperImpl.java
private Property property(PropertyDescriptor pd) { GenericTypeAwarePropertyDescriptor typeAware = (GenericTypeAwarePropertyDescriptor) pd; return new Property(typeAware.getBeanClass(), typeAware.getReadMethod(), typeAware.getWriteMethod(), typeAware.getName());/*from ww w .j ava 2s. c om*/ }
From source file:org.springframework.beans.GenericTypeAwarePropertyDescriptor.java
@Override public boolean equals(Object other) { if (this == other) { return true; }// w w w . j av a 2s. c o m if (!(other instanceof GenericTypeAwarePropertyDescriptor)) { return false; } GenericTypeAwarePropertyDescriptor otherPd = (GenericTypeAwarePropertyDescriptor) other; return (getBeanClass().equals(otherPd.getBeanClass()) && PropertyDescriptorUtils.equals(this, otherPd)); }