Mark Struberg created JOHNZON-72:
------------------------------------
Summary: 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)