类 CallbackHelper
- java.lang.Object
-
- net.sf.cglib.proxy.CallbackHelper
-
- 所有已实现的接口:
CallbackFilter
public abstract class CallbackHelper extends java.lang.Object implements CallbackFilter
- 版本:
- $Id: CallbackHelper.java,v 1.2 2004/06/24 21:15:20 herbyderby Exp $
-
-
构造器概要
构造器 构造器 说明 CallbackHelper(java.lang.Class superclass, java.lang.Class[] interfaces)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 intaccept(java.lang.reflect.Method method)Map a method to a callback.booleanequals(java.lang.Object o)TheCallbackFilterin use affects which cached class theEnhancerwill use, so this is a reminder that you should correctly implementequalsandhashCodefor customCallbackFilterimplementations in order to improve performance.protected abstract java.lang.ObjectgetCallback(java.lang.reflect.Method method)Callback[]getCallbacks()java.lang.Class[]getCallbackTypes()inthashCode()
-
-
-
方法详细资料
-
getCallback
protected abstract java.lang.Object getCallback(java.lang.reflect.Method method)
-
getCallbacks
public Callback[] getCallbacks()
-
getCallbackTypes
public java.lang.Class[] getCallbackTypes()
-
accept
public int accept(java.lang.reflect.Method method)
从接口复制的说明:CallbackFilterMap a method to a callback.- 指定者:
accept在接口中CallbackFilter- 参数:
method- the intercepted method- 返回:
- the index into the array of callbacks (as specified by
Enhancer.setCallbacks(net.sf.cglib.proxy.Callback[])) to use for the method,
-
hashCode
public int hashCode()
- 覆盖:
hashCode在类中java.lang.Object
-
equals
public boolean equals(java.lang.Object o)
从接口复制的说明:CallbackFilterTheCallbackFilterin use affects which cached class theEnhancerwill use, so this is a reminder that you should correctly implementequalsandhashCodefor customCallbackFilterimplementations in order to improve performance.- 指定者:
equals在接口中CallbackFilter- 覆盖:
equals在类中java.lang.Object
-
-