|
Java Bean 映射工具 Dozer 2.0 发布了。Dozer可以在JavaBean到JavaBean之间进行递归数据复制,并且这些JavaBean可以是不同的复杂的类型。
新版本主要是为了解决XSD schema 类型和domain objects之间的 SOA mapping 问题。
2.0的新特性包括:
Context based mapping Collection and Array mapping handling Lists, Sets, Arrays and allowing for class type hints Support for custom converters Custom bean factories for beans that do not follow the JavaBean specification Inheritance mapping including abstract classes and interfaces Field exclusion and custom getter() setter() functionality Copy-by-reference and ''self'' mappingNull and empty quote source value exclusionBi-directional or one-way mapping String to date mapping Data type conversion like String to Integer Wrapper or String to primitive Class level mapping recursion and deep property mapping <buzzword>Spring integration</buzzword> Map backed property support 8X speed improvement over dozer 1.x
在一个多层架构中,mapping框架是非常重要的,因为我们经常需要把某个层的对象传输到另外一个层,这个时候,一个好的mapping框架,可以帮你减轻负担。
官方站点:http://dozer.sourceforge.net/
|