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