public class ExceptionRecorder<T> extends java.lang.Object implements MethodInvocation<T>
This class is a part of Exception Handling Feature.
ExceptionRecorderParameter
,
ExceptionMapper
,
DefaultExceptionMapper
,
ExceptionHandlerInterceptor
Constructor and Description |
---|
ExceptionRecorder(Proxifier proxifier) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
intercept(T proxy,
java.lang.reflect.Method method,
java.lang.Object[] args,
SuperMethod superMethod)
Executes for all method invocations on proxies.
|
void |
replay(Result result) |
public ExceptionRecorder(Proxifier proxifier)
public java.lang.Object intercept(T proxy, java.lang.reflect.Method method, java.lang.Object[] args, SuperMethod superMethod)
MethodInvocation
intercept
in interface MethodInvocation<T>
proxy
- that received the method call.method
- called.args
- given to the method call.superMethod
- allowing calls to the overriden original method. A super method call only makes sense for
concrete class proxies.public void replay(Result result)
Copyright © 2013 Caelum. All Rights Reserved.