public interface CallbackFilter
Enhancer to a particular
callback. The type of the callbacks chosen for each method affects
the bytecode generated for that method in the subclass, and cannot
change for the life of the class.| Modifier and Type | Method and Description |
|---|---|
int |
accept(Method method,
List<Method> allMethods)
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. |
int accept(Method method, List<Method> allMethods)
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,Copyright © 2007–2016. All rights reserved.