![JAR search and dependency download from the Maven repository](/logo.png)
com.frameworkset.proxy.Interceptor Maven / Gradle / Ivy
package com.frameworkset.proxy;
import java.lang.reflect.Method;
/**
* Title: Interceptor
*
* Description: 拦截器定义
*
* Copyright: Copyright (c) 2005
*
* Company:
*
* @author biaoping.yin
* @version 1.0
*/
public interface Interceptor {
/**
* 将拦截器方法中包含的异常抛出
* @param method
* @param args
* @throws Throwable
*/
public void before(Method method,Object[] args) throws Throwable;
/**
* 将拦截器方法中包含的异常抛出
* @param method
* @param args
* @throws Throwable
*/
public void after(Method method,Object[] args) throws Throwable;
/**
* 将拦截器方法中包含的异常抛出
* @param method
* @param args
* @throws Throwable
*/
public void afterThrowing(Method method,Object[] args,Throwable throwable) throws Throwable;
// /**
// * 将拦截器方法中包含的异常抛出
// * @param method
// * @param args
// * @throws Throwable
// */
// public void afterThrowing(Method method,Object[] args) throws Throwable;
/**
* 将拦截器方法中包含的异常抛出
* @param method
* @param args
* @throws Throwable
*/
public void afterFinally(Method method,Object[] args) throws Throwable;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy