public class InvocationDecoratorSupport extends java.lang.Object implements InvocationDecorator
| Constructor and Description |
|---|
InvocationDecoratorSupport() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
beforeMethodStarts(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Called before a method is invoked on an object, to possibly decorate the arguments being passed to the method
invocation.
|
java.lang.Exception |
decorateInvocationException(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Exception cause)
Called when a method cannot be invoked, to possibly decorate the type of error.
|
java.lang.Object |
decorateResult(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object result)
Called on the way back from a method invocation, to possibly decorate the result.
|
java.lang.Throwable |
decorateTargetException(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Throwable cause)
Called when a called method fails, to possibly decorate the type of error.
|
public java.lang.Object[] beforeMethodStarts(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
InvocationDecoratorbeforeMethodStarts in interface InvocationDecoratorproxy - the proxy the method will be invoked onmethod - the method to be invokedargs - the arguments being passed to the methodpublic java.lang.Object decorateResult(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Object result)
InvocationDecoratordecorateResult in interface InvocationDecoratorproxy - the proxy the method was be invoked onmethod - the invoked methodargs - the arguments passed to the methodresult - the result of the method invocationpublic java.lang.Throwable decorateTargetException(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Throwable cause)
InvocationDecoratordecorateTargetException in interface InvocationDecoratorproxy - the proxy the method was be invoked onmethod - the invoked methodargs - the arguments passed to the methodcause - the original exception thrownpublic java.lang.Exception decorateInvocationException(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
java.lang.Exception cause)
InvocationDecoratordecorateInvocationException in interface InvocationDecoratorproxy - the proxy the method was be invoked onmethod - the invoked methodargs - the arguments passed to the methodcause - the original exception thrown