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)
MethodReplaceStrategyNote that both methods needs to be static.
with in interface MethodReplaceStrategymethod - The method call will be replaced by this method instead. Needs
to be static.public void with(InvocationHandler invocationHandler)
MethodReplaceStrategywith in interface MethodReplaceStrategyinvocationHandler - The invocation handler to replace the method call with.Copyright © 2007–2016. All rights reserved.