Java Bean 工具包 Dozer
fmms
13年前
<p><span>Dozer是一个用来复制 JavaBean 属性的类库,类似 <a href="http://www.open-open.com/lib/search?q=BeanUtils&od=0" target="_blank">BeanUtils</a></span></p> <p>例如:</p> <pre class="brush:java; toolbar: true; auto-links: false;">MapperIF mapper = new DozerBeanMapper(); DestinationObject destObject = (DestinationObject) mapper.map(sourceObject, DestinationObject.class); //或者是 DestinationObject destObject = new DestinationObject(); mapper.map(sourceObject, destObject);</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1326886039030" target="_blank">http://www.open-open.com/lib/view/home/1326886039030</a></p> <p></p>