public static Method getReadMethodOptional ( Class < ? > beanClass , String propertyName ) { PropertyDescriptor propertyDescriptor = getPropertyDescriptorOptional ( beanClass , propertyName ) ; if ( propertyDescriptor == null ) { return null ; } return propertyDescriptor . getReadMethod ( ) ; }
Returns the read method for the property with the given name in the given bean class .