Example usage for org.springframework.beans GenericTypeAwarePropertyDescriptor getBeanClass

List of usage examples for org.springframework.beans GenericTypeAwarePropertyDescriptor getBeanClass

Introduction

In this page you can find the example usage for org.springframework.beans GenericTypeAwarePropertyDescriptor getBeanClass.

Prototype

public Class<?> getBeanClass() 

Source Link

Usage

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));
}