||Memoization in Java Using Dynamic Proxy Classes|
|I've successfully employed this same solution in the past. One suggestion, if you implement this using a dynamic proxy based AOP framework (Nanning for example), you have less code to maintain, and you can easily limit the caching to certain methods. You could limit it to methods following a certain naming convention (i.e., "get*"), or you could use XDoclet-like attributes and cache any method with an "@idempotent" attribute.|
Showing messages 1 through 1 of 1.