private List < PropertyDescriptor > getPropertyDescriptorsForClass ( Class < ? > clasz ) { try { BeanInfo beanInfo = Introspector . getBeanInfo ( clasz ) ; return Arrays . asList ( beanInfo . getPropertyDescriptors ( ) ) ; } catch ( IntrospectionException e ) { LOGGER . error ( "instantiation exception while trying to create instance of class {}" , clasz . getName ( ) ) ; } return Lists . newArrayList ( ) ; }
Returns all property descriptors for a given class .