johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Sandtner (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JOHNZON-71) Split Mapper into Generator and Parser parts
Date Tue, 05 Apr 2016 22:29:25 GMT

    [ https://issues.apache.org/jira/browse/JOHNZON-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227266#comment-15227266
] 

Reinhard Sandtner commented on JOHNZON-71:
------------------------------------------

moved the read mapping logic to {{MappingParser}} as discussed in the hangout with [~struberg]...

you can find my commits here https://github.com/apache/incubator-johnzon/compare/master...rsandtner:JOHNZON-71-parser

> Split Mapper into Generator and Parser parts
> --------------------------------------------
>
>                 Key: JOHNZON-71
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-71
>             Project: Johnzon
>          Issue Type: Bug
>            Reporter: Mark Struberg
>            Assignee: Mark Struberg
>
> I like to get something similar to 
> {code}
> public interface ObjectConverter<T> {
>    void writeJson(T instance, JsonbGenerator jsonbGenerator);
>    T fromJson(JsonbParser jsonbParser, Type targetType);
> }
> {code}
> To get this done we need to split the Mapper into Reader and Writer parts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message