Example usage for org.springframework.beans CachedIntrospectionResults getPropertyDescriptors

List of usage examples for org.springframework.beans CachedIntrospectionResults getPropertyDescriptors

Introduction

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

Prototype

PropertyDescriptor[] getPropertyDescriptors() 

Source Link

Usage

From source file:org.springframework.beans.BeanUtils.java

/**
 * Retrieve the JavaBeans {@code PropertyDescriptor}s of a given class.
 * @param clazz the Class to retrieve the PropertyDescriptors for
 * @return an array of {@code PropertyDescriptors} for the given class
 * @throws BeansException if PropertyDescriptor look fails
 *///from  w ww  . j  a  va2s  .  c  o  m
public static PropertyDescriptor[] getPropertyDescriptors(Class<?> clazz) throws BeansException {
    CachedIntrospectionResults cr = CachedIntrospectionResults.forClass(clazz);
    return cr.getPropertyDescriptors();
}