Class BeanIntrospector


  • public class BeanIntrospector
    extends Object
    Obtains all property descriptors from a bean (interface or implementation).

    The java.beans.Introspector does not process the interfaces hierarchy chain, this one does.

    • Method Detail

      • getPropertyDescriptorsWithGettersAndSetters

        public static List<PropertyDescriptor> getPropertyDescriptorsWithGettersAndSetters​(Class<?> clazz)
        Extract all PropertyDescriptors for properties with a getter (that does not come from Object and does not accept parameters) and a setter.
        Parameters:
        clazz - The class to extract the desired PropertyDescriptors from
        Returns:
        All PropertyDescriptors for properties with a getter (that does not come from Object and does not accept parameters) and a setter.