You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2016/06/03 16:18:59 UTC

[jira] [Created] (JOHNZON-85) Add @Any support

Romain Manni-Bucau created JOHNZON-85:
-----------------------------------------

             Summary: Add @Any 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>();

    @Any
    public Map<String, Object> getAny() {
        return any;
    }

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