public class CacheRemoveMethodAdvice extends org.jsr107.ri.annotations.AbstractCacheRemoveEntryInterceptor<MethodInvocation> implements CacheMethodAdvice
Constructor and Description |
---|
CacheRemoveMethodAdvice(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) |
cacheRemoveEntry
public CacheRemoveMethodAdvice(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
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.