public class MethodReplaceStrategyImpl extends java.lang.Object implements MethodReplaceStrategy
| Modifier and Type | Class and Description |
|---|---|
private class |
MethodReplaceStrategyImpl.MethodInvocationHandler |
| Modifier and Type | Field and Description |
|---|---|
private java.lang.reflect.Method |
method |
| Constructor and Description |
|---|
MethodReplaceStrategyImpl(java.lang.reflect.Method method) |
| 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.
|
public MethodReplaceStrategyImpl(java.lang.reflect.Method method)
public void with(java.lang.reflect.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(java.lang.reflect.InvocationHandler invocationHandler)
MethodReplaceStrategywith in interface MethodReplaceStrategyinvocationHandler - The invocation handler to replace the method call with.