Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring mapping factory from XML file (Dozer structure) #9

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Configuring mapping factory from XML file (Dozer structure) #9

wants to merge 23 commits into from

Conversation

ikozar
Copy link

@ikozar ikozar commented Feb 25, 2013

XML structure compatible with Dozer, but in current version processes only classes and fiel names

matt-deboer and others added 23 commits December 18, 2012 15:56
modified fix.
Added fix for issue #74 which uses the ConcurrentLinkedHashMap from
googlecode as a replacement for CacheLRUHashMap which was not
thread-safe.
concurrent modification in SortedCollection and SortedSet, and with
improper synchronization in DefaultMapperFactory
added static AtomicInteger in SourceCodeContext to guarantee unique
generated names across a class-loader
updated uniqueness algorithm on SourceCodeContext to incorporate
nanoTime along with value of AtomicInteger, which should work better in
cases where class/source files are written out
broke a-to-b registry up into dynamic and explicit registry; then made
resolution of concrete destination type check for explicit first, then
exact type if concrete, then dynamic
Modified algorithm to generate object name suffix on ObjectFactoryGenerator.java
@elaatifi
Copy link
Owner

Hi,

Recently we moved the project to an organisation account (https://github.com/orika-mapper/orika)

This could help any one to do smooth transition to Orika, or just keep their mapping Metadat in XML.

What I suggest you is to create a separate maven module with minimal dependencies, to implement such features it's not mandatory to modify Orika.

The API should be as simple as possible I suggest you.

XMLConfigurer.configure(MapperFactory, String ... xmlMappingFiles)
XMLConfigurer.configure(MapperFactory, InputStream ... xmlMappingFiles)

Second thing is to use SLF4J Logger instead of System.out.println.

Many thanks,

Kindest regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants