public interface MethodReplaceStrategy
Modifier and Type | Method and Description |
---|---|
void |
with(java.lang.reflect.InvocationHandler invocationHandler)
Replaces the method invocation with an invocation handler
|
void |
with(java.lang.reflect.Method method)
Replaces the method invocation with this method.
|
void with(java.lang.reflect.Method method)
Note that both methods needs to be static.
method
- The method call will be replaced by this method instead. Needs
to be static.void with(java.lang.reflect.InvocationHandler invocationHandler)
invocationHandler
- The invocation handler to replace the method call with.