johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JOHNZON-85) Add @JohnzonAny support
Date Fri, 03 Jun 2016 16:21:59 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau resolved JOHNZON-85.
---------------------------------------
    Resolution: Fixed

> Add @JohnzonAny support 
> ------------------------
>
>                 Key: JOHNZON-85
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-85
>             Project: Johnzon
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 0.9.4
>
>
> {code}
> public static class AnyMe {
>     private Map<String, Object> any = new TreeMap<String, Object>();
>     @JohnzonAny
>     public Map<String, Object> getAny() {
>         return any;
>     }
>     @JohnzonAny
>     public void handle(final String key, final Object val) {
>         any.put(key, val);
>     }
> }
> {code}
> Idea is to be able to handle not modelled entries



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

Mime
View raw message