I've made some modifications to allow factories to be
injected via Spring (or similar). It's currently only
available via the DozerBeanMapper and assumes a 1-1
relationship between mapper and factory instance.
Unlike the existing factories, which are recreated each
time, the injected factory instance is reused though
it's possible that Spring might reset them if it felt
Non-injected factories are still available with their
Here's how to use it...
<!-- the key matches the name of the factory in the
dozerBeanMapping.xml file -->
<!-- more factories can be supplied with
<bean id="mapperBeanFactory" class="org.foo.MyFactory"
<property name="whatever">example required data
Log in to post a comment.