PropertyUtil

public final class PropertyUtil extends PropertyUtils

The PropertyUtil util class provides the same method like org.apache.commons.beanutils.PropertyUtils and two additional methods for safe writing and reading property in the given bean.

Methods

getPropertyDescriptors

public static PropertyDescriptor[] getPropertyDescriptors(Object bean)

safeGetProperty

public static Object safeGetProperty(Object bean, String name)

safeSetProperty

public static void safeSetProperty(Object bean, String name, Object value)