public class SingleArgumentTransformingInvocationHandler extends Object implements SerializableInvocationHandler
invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[]) is invoked other than one arguments
then an IllegalStateException is thrown.| Constructor and Description |
|---|
SingleArgumentTransformingInvocationHandler(Function transformation)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
SerializableInvocationHandler |
argumentGuardedWith(Object guard)
Convenience factory.
|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
SerializableInvocationHandler |
returnValueSerializableGuardedWith(Object guard)
Convenience factory.
|
static SingleArgumentTransformingInvocationHandler |
transformWith(Function transformation)
Convenience factory function.
|
public SingleArgumentTransformingInvocationHandler(Function transformation)
transformation - Transformation to applypublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke in interface InvocationHandlerThrowablepublic static SingleArgumentTransformingInvocationHandler transformWith(Function transformation)
transformation - Transformation to applypublic SerializableInvocationHandler returnValueSerializableGuardedWith(Object guard)
guard - Guard object to check on return valuepublic SerializableInvocationHandler argumentGuardedWith(Object guard)
guard - Guard object to check on single argument