com.jarvis.cache.interceptor.aopproxy.DeleteCacheAopProxy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autoload-cache-spring-boot-starter Show documentation
Show all versions of autoload-cache-spring-boot-starter Show documentation
autoload-cache spring boot starter.
The newest version!
package com.jarvis.cache.interceptor.aopproxy;
import java.lang.reflect.Method;
import org.aopalliance.intercept.MethodInvocation;
import com.jarvis.cache.aop.DeleteCacheAopProxyChain;
/**
*
*/
public class DeleteCacheAopProxy implements DeleteCacheAopProxyChain {
private final MethodInvocation invocation;
private Method method;
public DeleteCacheAopProxy(MethodInvocation invocation) {
this.invocation = invocation;
}
@Override
public Object[] getArgs() {
return invocation.getArguments();
}
@Override
public Object getTarget() {
return invocation.getThis();
}
@Override
public Method getMethod() {
if (null == method) {
this.method = invocation.getMethod();
}
return method;
}
}