public static PropertyDescriptor [ ] propertyDescriptors ( Class < ? > clazz ) { BeanInfo beanInfo = null ; try { beanInfo = Introspector . getBeanInfo ( clazz ) ; } catch ( IntrospectionException ex ) { throw new IllegalArgumentException ( "Bean introspection failed: " + ex . getMessage ( ) ) ; } return beanInfo . getPropertyDescriptors ( ) ; }
Reads property descriptors of class