Package org.springframework.cglib.proxy
Class CallbackHelper
java.lang.Object
org.springframework.cglib.proxy.CallbackHelper
- All Implemented Interfaces:
CallbackFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Map a method to a callback.boolean
TheCallbackFilter
in use affects which cached class theEnhancer
will use, so this is a reminder that you should correctly implementequals
andhashCode
for customCallbackFilter
implementations in order to improve performance.protected abstract Object
getCallback
(Method method) Callback[]
Class[]
int
hashCode()
-
Constructor Details
-
CallbackHelper
-
-
Method Details
-
getCallback
-
getCallbacks
-
getCallbackTypes
-
accept
Description copied from interface:CallbackFilter
Map a method to a callback.- Specified by:
accept
in 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:CallbackFilter
TheCallbackFilter
in use affects which cached class theEnhancer
will use, so this is a reminder that you should correctly implementequals
andhashCode
for customCallbackFilter
implementations in order to improve performance.- Specified by:
equals
in interfaceCallbackFilter
- Overrides:
equals
in classObject
-