public class

CacheProxyFactoryBean

extends AbstractSingletonProxyFactoryBean
java.lang.Object
   ↳ org.springframework.aop.framework.ProxyConfig
     ↳ org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
       ↳ org.springframework.cache.interceptor.CacheProxyFactoryBean

Class Overview

Proxy factory bean for simplified declarative caching handling. This is a convenient alternative to a standard AOP ProxyFactoryBean with a separate CachingInterceptor definition.

This class is intended to cover the typical case of declarative transaction demarcation: namely, wrapping a singleton target object with a caching proxy, proxying all the interfaces that the target implements.

See Also

Summary

Public Constructors
CacheProxyFactoryBean()
Public Methods
void setCacheDefinitionSources(CacheDefinitionSource... cacheDefinitionSources)
Set the caching attribute source which is used to find the cache operation definition.
Protected Methods
Object createMainInterceptor()
Create the "main" interceptor for this proxy factory bean.
[Expand]
Inherited Methods
From class org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
From class org.springframework.aop.framework.ProxyConfig
From class java.lang.Object
From interface org.springframework.beans.factory.BeanClassLoaderAware
From interface org.springframework.beans.factory.FactoryBean
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public CacheProxyFactoryBean ()

Public Methods

public void setCacheDefinitionSources (CacheDefinitionSource... cacheDefinitionSources)

Set the caching attribute source which is used to find the cache operation definition.

Parameters
cacheDefinitionSources cache definition sources

Protected Methods

protected Object createMainInterceptor ()

Create the "main" interceptor for this proxy factory bean. Typically an Advisor, but can also be any type of Advice.

Pre-interceptors will be applied before, post-interceptors will be applied after this interceptor.