public abstract class CallbackHelper extends java.lang.Object implements CallbackFilter
Constructor and Description |
---|
CallbackHelper(java.lang.Class superclass,
java.lang.Class[] interfaces) |
Modifier and Type | Method and Description |
---|---|
int |
accept(java.lang.reflect.Method method,
java.util.List<java.lang.reflect.Method> allMethods)
Map a method to a callback.
|
boolean |
equals(java.lang.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 java.lang.Object |
getCallback(java.lang.reflect.Method method) |
Callback[] |
getCallbacks() |
java.lang.Class[] |
getCallbackTypes() |
int |
hashCode() |
public CallbackHelper(java.lang.Class superclass, java.lang.Class[] interfaces)
protected abstract java.lang.Object getCallback(java.lang.reflect.Method method)
public Callback[] getCallbacks()
public java.lang.Class[] getCallbackTypes()
public int accept(java.lang.reflect.Method method, java.util.List<java.lang.reflect.Method> allMethods)
CallbackFilter
accept
in interface CallbackFilter
method
- the intercepted methodallMethods
- all the methods found on the instance. Don't mess with the contents of this list!!!Enhancer.setCallbacks(org.powermock.api.mockito.repackaged.cglib.proxy.Callback[])
) to use for the method,public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.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 java.lang.Object