Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Let's say we would introduce a @Cached annotation. Then it would be possible to have CodecDecorator that would wrap a CachingCodec around the Codec constructed for decoding that particular object.
It would be nice to have the option to define the @Cached annotation both on field level, as well as on type level. Field level will be easy, but if you happen to have a field of type List<SomeObject>, then you might also want to cache the individual object decoded from that list, rather than holding on to a cached reference of the List instance that may be a lazyloading list anyway.