[
https://issues.apache.org/jira/browse/JOHNZON-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213614#comment-15213614
]
Romain Manni-Bucau commented on JOHNZON-72:
-------------------------------------------
Annotation can just use Class, if ambiguous just fail - no chain please to
ensure understanding is simple and not needed since controllable by model or
builder.
For the name: JsonConverter? Not sure it is better bit what i can think of now.
> Improving Converters
> --------------------
>
> Key: JOHNZON-72
> URL: https://issues.apache.org/jira/browse/JOHNZON-72
> Project: Johnzon
> Issue Type: New Feature
> Affects Versions: 0.9.3-incubating
> Reporter: Mark Struberg
>
> Converter, Adapter and ObjectConverter are kind of fitting into the same
> ballpark.
> * Converter: convert from/to a single JSON attribute String
> * Adapter: converts from/to different classes during object de/serialisation
> * ObjectConverter: similar to Adapter, but allows for having much more
> control over the conversion.
> 1.) I'd like to introduce a common marker interface for them.
> * That could be used for registering a @JohnzonConverter which could be any
> of the 3
> * That could be used for MapperBuilder#addAdapter() methods
> 2.) ObjectConverter is not a good enough name imo. If you have a better idea,
> then please shout out ;)
> 3.) We might think about using @Priority on Adapters to allow a fallback
> chain handling?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)