Пример #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);
     }
   }
 }