Example usage for org.springframework.beans BeanWrapperImpl getPropertyDescriptor

List of usage examples for org.springframework.beans BeanWrapperImpl getPropertyDescriptor

Introduction

In this page you can find the example usage for org.springframework.beans BeanWrapperImpl getPropertyDescriptor.

Prototype

@Override
    public PropertyDescriptor getPropertyDescriptor(String propertyName) throws InvalidPropertyException 

Source Link

Usage

From source file:org.jdbcluster.privilege.PrivilegeCheckerImpl.java

/**
 * returns PropertyDescriptor from a given wrapped instance
 * //from w  w  w. j  a  va  2 s  .  c o  m
 * @param propertyPath
 * @return PropertyDescriptor
 */
private PropertyDescriptor getPropertyDescriptor(String propertyPath, BeanWrapperImpl beanWrapper) {
    PropertyDescriptor pd = null;
    try {
        pd = beanWrapper.getPropertyDescriptor(propertyPath);
    } catch (NullValueInNestedPathException nve) {
        if (logger.isInfoEnabled())
            logger.info("property [" + propertyPath + "] is not accessable. Skipping Priv test");
    } catch (Exception e1) {
        throw new ConfigurationException("property [" + propertyPath + "] is not accessable.", e1);
    }
    return pd;
}