Class DozerBeanMapper

  • All Implemented Interfaces:
    Mapper, MapperModelContext

    public class DozerBeanMapper
    extends Object
    implements Mapper, MapperModelContext
    Public Dozer Mapper implementation. This should be used/defined as a singleton within your application. This class performs several one-time initializations and loads the custom xml mappings, so you will not want to create many instances of it for performance reasons. Typically a system will only have one DozerBeanMapper instance per VM. If you are using an IOC framework (i.e Spring), define the Mapper as singleton="true". If you are not using an IOC framework, a DozerBeanMapperSingletonWrapper convenience class has been provided in the Dozer jar.

    It is technically possible to have multiple DozerBeanMapper instances initialized, but it will hinder internal performance optimizations such as caching.