public class SingleMethodForwardingInvocationHandler extends Object implements InvocationHandler
Constructor and Description |
---|
SingleMethodForwardingInvocationHandler(Object target,
Method m)
Construct.
|
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
InvocationHandler |
transformReturnValueWith(Function f)
Apply a transformation on the return value.
|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public InvocationHandler transformReturnValueWith(Function f)
f
- Transformation