Example usage for org.springframework.beans GenericTypeAwarePropertyDescriptor GenericTypeAwarePropertyDescriptor

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

Introduction

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

Prototype

public GenericTypeAwarePropertyDescriptor(Class<?> beanClass, String propertyName, @Nullable Method readMethod,
            @Nullable Method writeMethod, Class<?> propertyEditorClass) throws IntrospectionException 

Source Link

Usage

From source file:org.grails.beans.support.CachedIntrospectionResults.java

private PropertyDescriptor buildGenericTypeAwarePropertyDescriptor(Class<?> beanClass, PropertyDescriptor pd) {
    try {/*from  ww  w .ja  v a  2 s. c  o  m*/
        return new GenericTypeAwarePropertyDescriptor(beanClass, pd.getName(), pd.getReadMethod(),
                pd.getWriteMethod(), pd.getPropertyEditorClass());
    } catch (IntrospectionException ex) {
        throw new FatalBeanException("Failed to re-introspect class [" + beanClass.getName() + "]", ex);
    }
}