类 CacheProxyFactoryBean

所有已实现的接口:
Aware, BeanClassLoaderAware, BeanFactoryAware, FactoryBean<Object>, InitializingBean, SmartInitializingSingleton, Serializable

public class CacheProxyFactoryBean extends AbstractSingletonProxyFactoryBean implements BeanFactoryAware, SmartInitializingSingleton
Proxy factory bean for simplified declarative caching handling. This is a convenient alternative to a standard AOP 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 @Cacheable annotation. See the declarative annotation-based caching section of the Framework reference documentation for more information.

从以下版本开始:
4.0
作者:
Costin Leau, Juergen Hoeller
另请参阅: