spring-framework / org.springframework.beans / BeanUtils / getPropertyDescriptor

getPropertyDescriptor

@Nullable open static fun getPropertyDescriptor(clazz: Class<*>, propertyName: String): PropertyDescriptor

Retrieve the JavaBeans PropertyDescriptors for the given property.

Parameters

clazz - the Class to retrieve the PropertyDescriptor for

propertyName - the name of the property

Exceptions

BeansException - if PropertyDescriptor lookup fails

Return
the corresponding PropertyDescriptor, or null if none