Package dev.voidframework.cache.module
Class CacheInterceptor
java.lang.Object
dev.voidframework.cache.module.CacheInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor
public final class CacheInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor
Intercepts method call when annotation
Cache is used.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioninvoke(org.aopalliance.intercept.MethodInvocation methodInvocation) voidsetCacheEngine(CacheEngine cacheEngine) Sets the cache engine to use.
-
Constructor Details
-
CacheInterceptor
public CacheInterceptor()Build a new instance.
-
-
Method Details
-
setCacheEngine
Sets the cache engine to use.- Parameters:
cacheEngine- The cache engine
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-