spring-framework / org.springframework.cache.interceptor / CacheProxyFactoryBean / <init>

<init>

CacheProxyFactoryBean()

Proxy factory bean for simplified declarative caching handling. This is a convenient alternative to a standard AOP org.springframework.aop.framework.ProxyFactoryBean with a separate CacheInterceptor definition.

This class is designed to facilitate declarative cache demarcation: namely, wrapping a singleton target object with a caching proxy, proxying all the interfaces that the target implements. Exists primarily for third-party framework integration. Users should favor the cache: XML namespace org.springframework.cache.annotation.Cacheable annotation. See the declarative annotation-based caching section of the Spring reference documentation for more information.

Author
Costin Leau

Author
Juergen Hoeller

Since
3.1

See Also
org.springframework.aop.framework.ProxyFactoryBeanCacheInterceptor