cn.easyes.extension.context.Interceptor Maven / Gradle / Ivy
package cn.easyes.extension.context;
import cn.easyes.extension.plugins.Plugin;
/**
*
* Interceptor
*
*
* @author lilu
* @since 2022/3/4
*/
public interface Interceptor {
Object intercept(Invocation invocation) throws Throwable;
/**
* 代理
* @param t 泛型
* @param 泛型
* @return 泛型
*/
default T plugin(T t) {
return Plugin.wrap(t, this);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy