List of usage examples for org.springframework.beans CachedIntrospectionResults getPropertyDescriptors
PropertyDescriptor[] getPropertyDescriptors()
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(); }