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] [Created] (JOHNZON-85) Add @Any support
Date Fri, 03 Jun 2016 16:18:59 GMT
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)

Mime
View raw message