What happens when my “aspectized” POJO has field members that are of Collection class ?
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
- When I declared my POJO to be "aspectized", what happens to the fields with transient, static, and final modifiers?
- When I declare my POJO to be "aspectized", what happens to the fields with transient, static, and final modifiers?
- What happens when my "aspectized" POJO has field members that are of Collection class ?