
com.alicp.jetcache.anno.method.CacheInvokeContext Maven / Gradle / Ivy
The newest version!
/**
* Created on 13-10-02 16:10
*/
package com.alicp.jetcache.anno.method;
import com.alicp.jetcache.Cache;
import com.alicp.jetcache.anno.support.CacheAnnoConfig;
import java.lang.reflect.Method;
import java.util.function.BiFunction;
import java.util.function.Function;
/**
* @author huangli
*/
public class CacheInvokeContext {
private Invoker invoker;
private Method method;
private Object[] args;
private CacheInvokeConfig cacheInvokeConfig;
private Object targetObject;
private Object result;
private BiFunction cacheFunction;
private String[] hiddenPackages;
public CacheInvokeContext(){
}
public void setInvoker(Invoker invoker) {
this.invoker = invoker;
}
public Invoker getInvoker() {
return invoker;
}
public Method getMethod() {
return method;
}
public void setMethod(Method method) {
this.method = method;
}
public void setArgs(Object[] args) {
this.args = args;
}
public void setCacheInvokeConfig(CacheInvokeConfig cacheInvokeConfig) {
this.cacheInvokeConfig = cacheInvokeConfig;
}
public CacheInvokeConfig getCacheInvokeConfig() {
return cacheInvokeConfig;
}
public void setHiddenPackages(String[] hiddenPackages) {
this.hiddenPackages = hiddenPackages;
}
public String[] getHiddenPackages() {
return hiddenPackages;
}
public void setCacheFunction(BiFunction cacheFunction) {
this.cacheFunction = cacheFunction;
}
public BiFunction getCacheFunction() {
return cacheFunction;
}
public Object[] getArgs() {
return args;
}
public Object getTargetObject() {
return targetObject;
}
public void setTargetObject(Object targetObject) {
this.targetObject = targetObject;
}
public Object getResult() {
return result;
}
public void setResult(Object result) {
this.result = result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy