You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2016/07/21 17:05:21 UTC

[jira] [Closed] (JOHNZON-85) Add @JohnzonAny support

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

Reinhard Sandtner closed JOHNZON-85.
------------------------------------

> 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)