public class MethodReplaceStrategyImpl extends Object implements MethodReplaceStrategy
Constructor and Description |
---|
MethodReplaceStrategyImpl(Method method) |
Modifier and Type | Method and Description |
---|---|
void |
with(InvocationHandler invocationHandler)
Replaces the method invocation with an invocation handler
|
void |
with(Method method)
Replaces the method invocation with this method.
|
public MethodReplaceStrategyImpl(Method method)
public void with(Method method)
MethodReplaceStrategy
Note that both methods needs to be static.
with
in interface MethodReplaceStrategy
method
- The method call will be replaced by this method instead. Needs
to be static.public void with(InvocationHandler invocationHandler)
MethodReplaceStrategy
with
in interface MethodReplaceStrategy
invocationHandler
- The invocation handler to replace the method call with.Copyright © 2019. All rights reserved.