Package org.springframework.cglib.proxy
Class CallbackHelper
java.lang.Object
org.springframework.cglib.proxy.CallbackHelper
- All Implemented Interfaces:
CallbackFilter
-
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()
-
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(org.springframework.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
-