What happens when my “aspectized” POJO has field members that are of Collection class ?

0
Posted

What happens when my “aspectized” POJO has field members that are of Collection class ?

0

When a user puts a POJO into the cache through the call putObject , it will recursively map the field members into the cache store as well. When the field member is of a Collection class (e.g., List, Set, or Map), PojoCache will first map the collection into cache. Then, it will swap out dynamically the field reference with an corresponding proxy reference. This is necessary so that an internal update on the field member will be intercepted by the cache.

Related Questions