public class TracingInterceptor extends Object implements Interceptor
| Constructor and Description | 
|---|
| TracingInterceptor() | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | afterInvoke(Object object,
           String methodName,
           Object[] arguments,
           Object result)This code is executed after the method is optionally called. | 
| Object | beforeInvoke(Object object,
            String methodName,
            Object[] arguments)This code is executed before the method is optionally called. | 
| boolean | doInvoke() | 
| Writer | getWriter()Returns the writer associated with this interceptor. | 
| void | setWriter(Writer writer)Changes the writer associated with this interceptor. | 
| protected void | write(Object object,
     String methodName,
     Object[] arguments,
     String origin) | 
| protected void | writeInfo(Class aClass,
         String methodName,
         Object[] arguments) | 
protected Writer writer
public Writer getWriter()
public void setWriter(Writer writer)
public Object beforeInvoke(Object object, String methodName, Object[] arguments)
InterceptorbeforeInvoke in interface Interceptorobject - receiver object for the method callmethodName - name of the method to callarguments - arguments to the method callpublic Object afterInvoke(Object object, String methodName, Object[] arguments, Object result)
InterceptorafterInvoke in interface Interceptorobject - receiver object for the called methodmethodName - name of the called methodarguments - arguments to the called methodresult - result of the executed method call or result of beforeInvoke if method was not calledpublic boolean doInvoke()
doInvoke in interface Interceptorprotected void writeInfo(Class aClass, String methodName, Object[] arguments) throws IOException
IOException