net.sf.juffrou.reflect.JuffrouPropertyDescriptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of juffrou-xml-spring Show documentation
Show all versions of juffrou-xml-spring Show documentation
Juffrou XML integration with Spring-OXM
package net.sf.juffrou.reflect;
import java.beans.IntrospectionException;
import java.beans.PropertyDescriptor;
import net.sf.juffrou.reflect.internal.BeanFieldHandler;
/**
* Spring framework's property descriptor for Juffrou BeanWrapper's properties
* @author cemartins
*
*/
public class JuffrouPropertyDescriptor extends PropertyDescriptor {
public JuffrouPropertyDescriptor(Class> beanClass, BeanFieldHandler beanFieldHandler) throws IntrospectionException {
super(beanFieldHandler.getField().getName(), beanFieldHandler.getReadMethod(beanClass), beanFieldHandler.getWriteMethod(beanClass));
}
}