Interface MethodReplaceStrategy
-
- All Known Implementing Classes:
MethodReplaceStrategyImpl
public interface MethodReplaceStrategySpecifies the replace strategy for a method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwith(java.lang.reflect.InvocationHandler invocationHandler)Replaces the method invocation with an invocation handlervoidwith(java.lang.reflect.Method method)Replaces the method invocation with this method.
-
-
-
Method Detail
-
with
void with(java.lang.reflect.Method method)
Replaces the method invocation with this method.Note that both methods needs to be static.
- Parameters:
method- The method call will be replaced by this method instead. Needs to be static.
-
with
void with(java.lang.reflect.InvocationHandler invocationHandler)
Replaces the method invocation with an invocation handler- Parameters:
invocationHandler- The invocation handler to replace the method call with.
-
-