java - How to create Orika global Object Factory? -


is there way create global object factory? mean, example:

this.mapper.map(source, myclass.class); this.mapper.map(source, myclass2.class); 

i want when orika creates myclass , myclass2 instance through custom object factory, not classes, want each one.

is there generic way accomplish this? reason because using spring , want custom object factory add instances applicationcontext when creates one.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -