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
@Cacheable annotation.
See the
declarative annotation-based caching
section of the Spring reference documentation for more information.
org.springframework.aop.framework.ProxyFactoryBean , CacheInterceptor
| Modifier and Type | Field and Description |
|---|---|
| private final CacheInterceptor | |
| private Pointcut |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterSingletonsInstantiated()
Implements org. |
| protected Object | createMainInterceptor()
Implements abstract org. |
| public void | setBeanFactory(BeanFactory
owning BeanFactory (never beanFactory)null).
The bean can immediately call methods on the factory.Implements org. |
| public void | setCacheManager(CacheManager cacheManager)
Set the |
| public void | setCacheOperationSources(CacheOperationSource... cacheOperationSources)
Set one or more sources to find cache operations. |
| public void | setCacheResolver(CacheResolver cacheResolver)
Set the default |
| public void | setKeyGenerator(KeyGenerator keyGenerator)
Set the default |
| public void | setPointcut(Pointcut pointcut)
Set a pointcut, i.e. a bean that triggers conditional invocation of the
|
| cacheInterceptor | back to summary |
|---|---|
| private final CacheInterceptor cacheInterceptor | |
| pointcut | back to summary |
|---|---|
| private Pointcut pointcut | |
| CacheProxyFactoryBean | back to summary |
|---|---|
| public CacheProxyFactoryBean() | |
| afterSingletonsInstantiated | back to summary |
|---|---|
| public void afterSingletonsInstantiated() Implements org. Doc from org. Invoked right at the end of the singleton pre-instantiation phase,
with a guarantee that all regular singleton beans have been created
already. Note This callback won't be triggered for singleton beans
lazily initialized on demand after
| |
| createMainInterceptor | back to summary |
|---|---|
| protected Object createMainInterceptor() Implements abstract org. Doc from org. 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.
| |
| setBeanFactory | back to summary |
|---|---|
| public void setBeanFactory(BeanFactory beanFactory) Implements org. Doc from org. Callback that supplies the owning factory to a bean instance. Invoked after the population of normal bean properties
but before an initialization callback such as
| |
| setCacheManager | back to summary |
|---|---|
| public void setCacheManager(CacheManager cacheManager) Set the
| |
| setCacheOperationSources | back to summary |
|---|---|
| public void setCacheOperationSources(CacheOperationSource... cacheOperationSources) Set one or more sources to find cache operations. | |
| setCacheResolver | back to summary |
|---|---|
| public void setCacheResolver(CacheResolver cacheResolver) Set the default The default resolver resolves the caches against their names and the default cache manager.
| |
| setKeyGenerator | back to summary |
|---|---|
| public void setKeyGenerator(KeyGenerator keyGenerator) Set the default The default is a
| |
| setPointcut | back to summary |
|---|---|
| public void setPointcut(Pointcut pointcut) Set a pointcut, i.e. a bean that triggers conditional invocation of the
Note Additional interceptors are always invoked.
| |