public abstract class CallbackHelper extends Object implements CallbackFilter
Constructor and Description |
---|
CallbackHelper(Class superclass,
Class[] interfaces) |
Modifier and Type | Method and Description |
---|---|
int |
accept(Method method)
Map a method to a callback.
|
boolean |
equals(Object o)
The
CallbackFilter in use affects which cached class
the Enhancer will use, so this is a reminder that
you should correctly implement equals and
hashCode for custom CallbackFilter
implementations in order to improve performance. |
protected abstract Object |
getCallback(Method method) |
Callback[] |
getCallbacks() |
Class[] |
getCallbackTypes() |
int |
hashCode() |
public Callback[] getCallbacks()
public Class[] getCallbackTypes()
public int accept(Method method)
CallbackFilter
accept
in interface CallbackFilter
method
- the intercepted methodEnhancer.setCallbacks(org.mockito.cglib.proxy.Callback[])
) to use for the method,public boolean equals(Object o)
CallbackFilter
CallbackFilter
in use affects which cached class
the Enhancer
will use, so this is a reminder that
you should correctly implement equals
and
hashCode
for custom CallbackFilter
implementations in order to improve performance.equals
in interface CallbackFilter
equals
in class Object
Copyright © 2018. All rights reserved.