List of usage examples for org.springframework.beans BeanWrapperImpl getPropertyDescriptor
@Override public PropertyDescriptor getPropertyDescriptor(String propertyName) throws InvalidPropertyException
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; }