public class MethodCacheInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
MethodCacheInterceptor()
construct a read-write cache interceptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Checks if required attributes are provided.
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
main method caches method result if method is configured for caching.
|
boolean |
isWriteOnly() |
void |
setCache(net.sf.ehcache.Cache cache)
sets cache name to be used.
|
void |
setWriteOnly(boolean writeOnly) |
public MethodCacheInterceptor()
public void setCache(net.sf.ehcache.Cache cache)
cache - cache instancepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke in interface org.aopalliance.intercept.MethodInterceptorinvocation - method invocation objectThrowable - transparentpublic boolean isWriteOnly()
public void setWriteOnly(boolean writeOnly)
Copyright © 2026. All rights reserved.