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 Details

    • CacheInterceptor

      public CacheInterceptor()
      Build a new instance.
  • Method Details

    • setCacheEngine

      @Inject public void setCacheEngine(CacheEngine cacheEngine)
      Sets the cache engine to use.
      Parameters:
      cacheEngine - The cache engine
    • invoke

      public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
      Specified by:
      invoke in interface org.aopalliance.intercept.MethodInterceptor
      Throws:
      Throwable