All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jarvis.cache.interceptor.aopproxy.DeleteCacheAopProxy Maven / Gradle / Ivy

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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy