Class BeanMapperImplDozer

    • Field Detail

      • dozer

        private com.github.dozermapper.core.Mapper dozer
        The dozer instance to use.
    • Constructor Detail

      • BeanMapperImplDozer

        public BeanMapperImplDozer()
        The constructor.
    • Method Detail

      • setDozer

        @Inject
        public void setDozer​(com.github.dozermapper.core.Mapper dozer)
        Parameters:
        dozer - is the Mapper to Inject.
      • map

        public <T> T map​(Object source,
                         Class<T> targetClass)
        Description copied from interface: BeanMapper
        Recursively converts the given source Object to the given target Class.
        Type Parameters:
        T - is the generic type to convert to.
        Parameters:
        source - is the object to convert.
        targetClass - is the Class reflecting the type to convert to.
        Returns:
        the converted object. Will be null if source is null.