com.jdon.bussinessproxy.dyncproxy.cglib
类 CGLIBDynamicProxyWeaving

java.lang.Object
  继承者 com.jdon.bussinessproxy.dyncproxy.cglib.CGLIBDynamicProxyWeaving
所有已实现的接口:
Startable, Serializable, net.sf.cglib.proxy.Callback, net.sf.cglib.proxy.MethodInterceptor

public class CGLIBDynamicProxyWeaving
extends Object
implements net.sf.cglib.proxy.MethodInterceptor, Serializable, Startable

CGLIB Dynamic Proxy Weaving mode Weaving implemention is dynamic proxy Every target service object has its DynamicProxyWeaving object problem: memory leak is more entwined in cglib. The leak can be removed by having cglib loaded by a different classloader than the one for the web app. The solution is to move the cglib jar and the asm jar to the shared lib directory of Tomcat. http://users.cis.fiu.edu/~downeyt/webdev/memory_leaks.shtml

作者:
banq
另请参见:
序列化表格

构造方法摘要
CGLIBDynamicProxyWeaving(TargetMetaRequest targetMetaRequest, AopClient aopClient)
           
 
方法摘要
 Object intercept(Object object, Method method, Object[] objects, net.sf.cglib.proxy.MethodProxy methodProxy)
           
 Object invoke(Object p_proxy, Method m, Object[] args)
          方法调用 需要拦截方法在这里实现。
 void start()
          Start this component.
 void stop()
          Stop this component.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CGLIBDynamicProxyWeaving

public CGLIBDynamicProxyWeaving(TargetMetaRequest targetMetaRequest,
                                AopClient aopClient)
方法详细信息

intercept

public Object intercept(Object object,
                        Method method,
                        Object[] objects,
                        net.sf.cglib.proxy.MethodProxy methodProxy)
                 throws Throwable
指定者:
接口 net.sf.cglib.proxy.MethodInterceptor 中的 intercept
抛出:
Throwable

invoke

public Object invoke(Object p_proxy,
                     Method m,
                     Object[] args)
              throws Throwable
方法调用 需要拦截方法在这里实现。目前实现arround intercept

参数:
p_proxy - Object
m - Method
args - Object[]
返回:
Object
抛出:
Throwable

start

public void start()
从接口 Startable 复制的描述
Start this component.

指定者:
接口 Startable 中的 start

stop

public void stop()
从接口 Startable 复制的描述
Stop this component.

指定者:
接口 Startable 中的 stop


Copyright © 2013. All Rights Reserved.