1 16 17 package org.apache.commons.beanutils; 18 19 20 33 34 public class ConvertingWrapDynaBean extends WrapDynaBean { 35 36 37 38 44 public ConvertingWrapDynaBean(Object instance) { 45 46 super(instance); 47 48 } 49 50 51 66 public void set(String name, Object value) { 67 68 try { 69 BeanUtils.copyProperty(instance, name, value); 70 } catch (Throwable t) { 71 throw new IllegalArgumentException  72 ("Property '" + name + "' has no write method"); 73 } 74 75 } 76 } 77 | Popular Tags |