IntroSpector-->javaBean-->特殊的java类
get和set方法

   ReflectPoint pt1 = new ReflectPoint(3,5);
String propertyName ="x"
PropertyDescriptor pd = new PropertyDescriptor(propertyName,pt1.getClass());
Method methodGetX = pd.getReadMethod();
Object retVal = methodGetX.invoke(pt1);
retVal;// getWriteMethod();//设置一个属性 IntroSpector.getBeanInfo();//将一个java类当做java Bean来看 BeanUtils工具包操作
BeanUtils.getProperty(pt1,propertyName);
BeanUtils.setProperty(pt1,"x","9");
支持属性的级联设置
Beanutils.setProperty(pt1,"birthday.time","111"); PropertyUtils.setProperty(pt1,"x",9);//原本的属性类型
05-12 03:29