Attach proxy to an existing object?
问题 My plan is to write a annotation based caching framework which caches the return values of methods. When a method gets called the first time with a specific parameter, then the cache should store the methods return value. When the same method gets called a second time with the same parameter then the method should return the previously calculated result from the cache and not execute its code again. My annotations looks like this: @Cached(cacheProvider = HashMapCacheProvider.class) public