Friday, 27. July 2007
Dozer 4.0 Java Bean Mapping Framework Rolled Out
The Dozer team has announced the release of version 4.0 of Dozer, a Java Bean to Java Bean mapper that recursively copies data from one object to another. Typically, these data objects will be of different complex types. This release contains bug fixes, feature requests, and some internal refactoring. New features include indexed mapping within deep mapping, improved support of Map backed properties, and configuration of auto string trimming.
Dozer supports simple property mapping, complex type mapping, bi-directional mapping, implicit-explicit mapping, as well as recursive mapping. This includes mapping collection attributes that also need mapping at the element level. Dozer not only supports mapping between attribute names, but also converting between types. Many conversion scenarios are supported out of the box, but Dozer also allows you to specify custom conversions via XML.
A mapping framework is useful in a layered architecture where you are creating layers of abstraction by encapsulating changes to particular data objects vs. propagating these objects to other layers (i.e. external service data objects, domain objects, data transfer objects, internal service data objects). A mapping framework is ideal for using within Assembler type classes that are responsible for mapping from one data object to another.
Some of Dozer's features include:
* Indexed Property Mapping
* Deep Property Mapping
* Collection and Array Property Mapping
* Inheritance Mapping
* Map Backed Property Mapping
* Context Based Mapping
* Enum Mapping
* Auto Data Type Conversion
* Spring Integration
* Event Listeners
* Custom Converters
* XMLBean and JAXB Support
* Runtime Mapping Metrics
* JMX Integration
Related Links
http://dozer.sourceforge.net/