Skip to content
This repository has been archived by the owner on Nov 17, 2017. It is now read-only.

Allow default implementation for abstract target field #229

Open
igarashitm opened this issue Oct 15, 2017 · 0 comments
Open

Allow default implementation for abstract target field #229

igarashitm opened this issue Oct 15, 2017 · 0 comments

Comments

@igarashitm
Copy link
Contributor

igarashitm commented Oct 15, 2017

Right now Java field writer only supports concrete class which can be instantiated via no-arg constructor. See createObject() in this class:
https://github.com/atlasmap/atlasmap-runtime/blob/master/atlas-java-parent/atlas-java-module/src/main/java/io/atlasmap/java/module/DocumentJavaFieldWriter.java

One option is to feed a mapping between interface/abstract types and default impl classes from configuration or something.
java.util.List : java.util.ArrayList
java.util.Map : java.util.HashMap
...

And it also should be configurable from mapping file so that the user can define their own types.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant