public class CachePutMethodAdvice extends org.jsr107.ri.annotations.AbstractCachePutInterceptor<MethodInvocation> implements CacheMethodAdvice
Constructor and Description |
---|
CachePutMethodAdvice(org.jsr107.ri.annotations.CacheContextSource<MethodInvocation> cacheContextSource)
Single constructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
advise(MethodInvocation invocation)
Advise the method, usually invoking
MethodInvocation.proceed() at some point. |
org.jsr107.ri.annotations.InterceptorType |
getInterceptorType() |
protected Object |
proceed(MethodInvocation invocation) |
cachePut, cacheValue
public CachePutMethodAdvice(org.jsr107.ri.annotations.CacheContextSource<MethodInvocation> cacheContextSource)
public org.jsr107.ri.annotations.InterceptorType getInterceptorType()
getInterceptorType
in interface CacheMethodAdvice
public void advise(MethodInvocation invocation)
MethodAdvice
MethodInvocation.proceed()
at some point.
The advice is free to inspect and even replace parameters. Most
Aspects will then invoke MethodInvocation.proceed()
. The advice may then inspect and
replace any checked thrown exceptions. Some advice (for example, caching) may selectively decide to bypass the
invocation entirely, and instead invoke some other method or otherwise set a return value or thrown exception.advise
in interface MethodAdvice
invocation
- identifies the method being invoked, including parametersprotected Object proceed(MethodInvocation invocation) throws Throwable
proceed
in class org.jsr107.ri.annotations.AbstractCacheInterceptor<MethodInvocation>
Throwable
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.