Package net.sf.cglib.proxy
Class CallbackHelper
java.lang.Object
net.sf.cglib.proxy.CallbackHelper
- All Implemented Interfaces:
CallbackFilter
- Version:
- $Id: CallbackHelper.java,v 1.2 2004/06/24 21:15:20 herbyderby Exp $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMap a method to a callback.booleanTheCallbackFilterin 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 ObjectgetCallback(Method method) Callback[]Class[]inthashCode()
-
Field Details
-
methodMap
-
callbacks
-
-
Constructor Details
-
CallbackHelper
-
-
Method Details
-
getCallback
-
getCallbacks
-
getCallbackTypes
-
accept
Description copied from interface:CallbackFilterMap a method to a callback.- Specified by:
acceptin interfaceCallbackFilter- Parameters:
method- the intercepted method- Returns:
- 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() -
equals
Description copied from interface:CallbackFilterTheCallbackFilterin use affects which cached class theEnhancerwill use, so this is a reminder that you should correctly implementequalsandhashCodefor customCallbackFilterimplementations in order to improve performance.- Specified by:
equalsin interfaceCallbackFilter- Overrides:
equalsin classObject
-