CacheLoaderAop interface is not used right now. As for TreeCacheAop and CacheLoader, I have written some unit tests under functional/org/jboss/cache/aop/loader. You can check it out. On first thought, I'd assume if you are using CacheLoader interface, it should work. But I can be wrong.
Thanks for the reply. I looked at the test case, but what I see there is some objects put in to the cache to do a particular test and then retrieve them. What I am looking for is a way to load these objects lazily as needed based on the CacheLoader interface methods exists(Fqn) and get(Fqn). None of the AOP examples provided with the distribution cover this. My difficulty is to figure out how to load the objects dynamically when needed and attach them to the Aop Cache. Any ideas?
Ah, ic. Yes, lzay loading is on todo plate. There is a Jira issue (JBCACHE-13) with it as well. I haven't had time to think about it yet. But if you have any suggestion, do let me know. :-)