metafacture / metafacture-core

Core package of the Metafacture tool suite for metadata processing.
https://metafacture.org
Apache License 2.0
71 stars 34 forks source link

Allow A java class to act as <map> #39

Closed mgeipel closed 11 years ago

mgeipel commented 11 years ago

This is similar to the function tag.

Example:

<maps>
   <javamap name="myJavaMap" class="org.culturegraph.MyMap" attributeA="xy"/>
</maps>
fsteeg commented 11 years ago

Nice! We were considering using a Java map in a transformation, but it had to be set programmatically on the Morph instance before and we wanted to use Flux... So this means we can now use Java maps in transformations driven by Flux, right?

mgeipel commented 11 years ago

That’s the idea ☺

fsteeg commented 11 years ago

Cool, very useful!

mgeipel commented 11 years ago

See also the updated https://github.com/culturegraph/metafacture-core/wiki/Data-lookup