-
Notifications
You must be signed in to change notification settings - Fork 292
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
base: master
Are you sure you want to change the base?
Conversation
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
actual order of search
Modified algorithm to generate object name suffix on ObjectFactoryGenerator.java
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) Second thing is to use SLF4J Logger instead of System.out.println. Many thanks, Kindest regards |
XML structure compatible with Dozer, but in current version processes only classes and fiel names