Hello,
i am new to hivemind and i wanted to integrate
Dozer (a "Java Bean to Java Bean mapper") to the application i am working at.
I spent some time trying to figure out how to do this, so i post the solution i found in case it turns out to be useful for someone else too (or so it can be improved by others).
<service-point id="mapperService" interface="net.sf.dozer.util.mapping.MapperIF" />
<configuration-point id="mappingFiles">
<schema>
<element name="mappingFile">
<attribute name="value" required="true"/>
<rules>
<push-attribute attribute="value"/>
<invoke-parent method="addElement"/>
</rules>
</element>
</schema>
</configuration-point>
<contribution configuration-id="mappingFiles">
<mappingFile value="dozerBeanMapping.xml" />
</contribution>
<implementation service-id="mapperService">
<invoke-factory>
<construct class="net.sf.dozer.util.mapping.DozerBeanMapper">
<set-configuration property="mappingFiles" configuration-id="mappingFiles"/>
</construct>
</invoke-factory>
</implementation>
Cheers,
alina.