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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -