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

com.frameworkset.proxy.InvocationHandler Maven / Gradle / Ivy

Go to download

bboss is a j2ee framework include aop/ioc,mvc,persistent,taglib,rpc,event ,bean-xml serializable and so on.http://www.bbossgroups.com

There is a newer version: 6.2.5
Show newest version
package com.frameworkset.proxy;

import java.lang.reflect.Method;

/**
 * 

Title: InvocationHandler

* *

Description: 处理动态代理调用

* *

Copyright: Copyright (c) 2005

* *

Company:

* * @author biaoping.yin * @version 1.0 */ public abstract class InvocationHandler implements java.lang.reflect.InvocationHandler{ /** * 需要动态代理的接口实现程序 */ protected Object delegate; /** * 拦截器提供所有的面向方面的接口 */ protected Interceptor interceptor; public abstract Object invoke(Object proxy, Method method, Object[] args) throws Throwable ; public InvocationHandler(Object delegate) { this.delegate = delegate; this.interceptor = null; } public InvocationHandler(Object delegate,Interceptor interceptor) { this.delegate = delegate; this.interceptor = interceptor; } public Object getDelegate() { return delegate; } public Interceptor getInterceptor() { return interceptor; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy