org.springframework.cache.interceptor
Class CacheProxy
java.lang.Object
org.springframework.cache.interceptor.CacheProxy
public final class CacheProxy
- extends Object
Methods for creating caching proxies.
Method Summary |
static
|
createCacheProxy(T o,
org.springframework.cache.CacheManager cacheManager)
This creates a caching proxy around a existing object if the proxy can be applied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createCacheProxy
public static <T> T createCacheProxy(T o,
org.springframework.cache.CacheManager cacheManager)
- This creates a caching proxy around a existing object if the proxy can be applied.
- Parameters:
o
- the object to proxy. cannot be null.cacheManager
- the cacheManager to handle the caching operations. cannot be null.
- Returns:
- a proxy. will not return null.
- Throws:
IllegalArgumentException
- if the o or cacheManager is null
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.