com.frameworkset.proxy.Interceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-util Show documentation
Show all versions of bboss-util Show documentation
bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com
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;
}