Class CacheRemoveAllMethodAdvice
java.lang.Object
org.jsr107.ri.annotations.AbstractCacheInterceptor<I>
org.jsr107.ri.annotations.AbstractCacheRemoveAllInterceptor<MethodInvocation>
org.apache.tapestry5.jcache.internal.CacheRemoveAllMethodAdvice
- All Implemented Interfaces:
CacheMethodAdvice,MethodAdvice
public class CacheRemoveAllMethodAdvice
extends org.jsr107.ri.annotations.AbstractCacheRemoveAllInterceptor<MethodInvocation>
implements CacheMethodAdvice
-
Constructor Summary
ConstructorsConstructorDescriptionCacheRemoveAllMethodAdvice(org.jsr107.ri.annotations.CacheContextSource<MethodInvocation> cacheContextSource) Single constructor of this class. -
Method Summary
Modifier and TypeMethodDescriptionvoidadvise(MethodInvocation invocation) Advise the method, usually invokingMethodInvocation.proceed()at some point.org.jsr107.ri.annotations.InterceptorTypeprotected Objectproceed(MethodInvocation invocation) Methods inherited from class org.jsr107.ri.annotations.AbstractCacheRemoveAllInterceptor
cacheRemoveAll, getCacheInvocationContext, removeAll
-
Constructor Details
-
CacheRemoveAllMethodAdvice
public CacheRemoveAllMethodAdvice(org.jsr107.ri.annotations.CacheContextSource<MethodInvocation> cacheContextSource) Single constructor of this class.
-
-
Method Details
-
getInterceptorType
- Specified by:
getInterceptorTypein interfaceCacheMethodAdvice- Returns:
- The type of intereceptor
-
advise
Description copied from interface:MethodAdviceAdvise the method, usually invokingMethodInvocation.proceed()at some point. The advice is free to inspect and even replace parameters. Most Aspects will then invokeMethodInvocation.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.- Specified by:
advisein interfaceMethodAdvice- Parameters:
invocation- identifies the method being invoked, including parameters
-
proceed
- Specified by:
proceedin classorg.jsr107.ri.annotations.AbstractCacheInterceptor<MethodInvocation>- Throws:
Throwable
-