Interface MethodReplaceStrategy
- All Known Implementing Classes:
MethodReplaceStrategyImpl
public interface MethodReplaceStrategy
Specifies the replace strategy for a method.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwith(InvocationHandler invocationHandler) Replaces the method invocation with an invocation handlervoidReplaces the method invocation with this method.
-
Method Details
-
with
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
Replaces the method invocation with an invocation handler- Parameters:
invocationHandler- The invocation handler to replace the method call with.
-