Skip to content

A library that provides the missing Java 8 type mappers for the Dozer Java Bean Mapper.

License

Notifications You must be signed in to change notification settings

GeBeater/dozer-jdk8-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dozer-jdk8-support

Build Status Coverage Status Maven Central

A library that provides the missing Java 8 type mappers for the Dozer Java Bean Mapper.

Usage

The library is published to the Central Repository and can be used as maven dependency in the affected project like below.

<dependency>
  <groupId>io.craftsman</groupId>
  <artifactId>dozer-jdk8-support</artifactId>
  <version>1.0.6</version>
</dependency>

The current mappings are Custom Converters based. Dozer provides (at least) two ways to integrate custom converters. Via XML file or the API. Although the API is the newer one and recommended, the converters must be implemented via XML file because the API does not work (see #242). Regarding the documentation the custom converters must be specified in the global configuration block. The current library comes with a corresponding configuration which can be enabled by the code snippet below, if a configuration block does not already exist, because Dozer does not allow to specify multiple configuration blocks. In this case the configuration block of the dozerJdk8Converters.xml file must be taken over.

List<String> mappingFiles = new ArrayList();
mappingFiles.add("dozerJdk8Converters.xml");

DozerBeanMapper dozerBeanMapper = new DozerBeanMapper();
dozerBeanMapper.setMappingFiles(mappingFiles);

Deployment Notice (Maintainer only)

A snapshot deployment (not available without adding the snapshot repository) can be performed with the command below.

mvn deploy

A release deployment can be performed with the commands below.

mvn release:clean release:prepare

# https://github.com/keybase/keybase-issues/issues/2798
# export GPG_TTY=$(tty)
mvn release:perform

License

MIT License

About

A library that provides the missing Java 8 type mappers for the Dozer Java Bean Mapper.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages