Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.1.14
-
Fix Version/s: 6.1.15.pre0
-
Component/s: Bayeux, Continuations, HTTP, Servlet
-
Labels:None
-
Number of attachments :
Description
Add a JSONPojoConvertor and enhance JSONObjectConvertor to do caching.
- Converts POJOs to JSON and vice versa.
- The key difference:
- - returns the actual object from Convertor.fromJSON (JSONObjectConverter returns a Map)
- - the getters/setters are resolved at initialization (JSONObjectConverter resolves it at runtime)
- - correctly sets the number fields
The JSONObjectConvertor could act as the default convertor and act as a cache of pojo convertors.
Attached is a patch to enable runtime caching strategy for unresolved pojos.