props.put("call", callable.call());
} catch (Exception e) {
// Ignore.
}
Job anonymous = new Job() {
public Map doSomething() {
Map map = new HashMap();
map.put("publicObject", publicObject);
map.put("publicInt", new Integer(publicInt));
map.put("packageObject", packageObject);
map.put("packageInt", new Integer(packageInt));
map.put("protectedObject", protectedObject);
map.put("protectedInt", new Integer(protectedInt));
map.put("privateObject", privateObject);
map.put("privateInt", new Integer(privateInt));
map.put("nonObject", nonObject);
map.put("nonInt", new Integer(nonInt));
return map;
}
};
props.put("anonymous", anonymous.doSomething());
props.put("public", new PublicNested());
return props;
}