示例#1
0
 @Override
 public void setValue(Object newValue) throws Property.ReadOnlyException {
   try {
     PropertyUtils.setProperty(bean, propertyName, newValue);
   } catch (Exception ex) {
     throw new RuntimeException(ex);
   }
 }
示例#2
0
 @Override
 public Object getValue() {
   try {
     return getDynaBean().get(propertyName);
   } catch (Exception e) {
     try {
       return PropertyUtils.getProperty(bean, propertyName);
     } catch (Exception ex) {
       throw new RuntimeException(ex);
     }
   }
 }