net.sf.crispy.interceptor
Class StopWatchInterceptor

java.lang.Object
  extended bynet.sf.crispy.interceptor.StopWatchInterceptor
All Implemented Interfaces:
Interceptor

public class StopWatchInterceptor
extends java.lang.Object
implements Interceptor

Mini stopwatch.

Author:
Linke

Constructor Summary
StopWatchInterceptor()
           
 
Method Summary
 void afterMethodInvocation(InterceptorContext pvInterceptorContext)
          After call doInvoke.
 void afterNewInstance(java.lang.Class pvInterfaceClass, java.lang.Object pvProxyObject)
          After call newInstance.
 void beforeMethodInvocation(InterceptorContext pvInterceptorContext)
          Before call doInvoke.
 void beforeNewInstance(java.lang.Class pvInterfaceClass)
          Before call newInstance.
 void clearStopTimeInvokeMethod()
           
 void clearStopTimeNewInstance()
           
 int getOnErrorCounter()
           
 long getStopTimeInvokeMethod()
           
 long getStopTimeNewInstance()
           
 void onError(java.lang.Throwable pvThrowable)
          Call if a Exception is thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopWatchInterceptor

public StopWatchInterceptor()
Method Detail

beforeNewInstance

public void beforeNewInstance(java.lang.Class pvInterfaceClass)
Description copied from interface: Interceptor
Before call newInstance.

Specified by:
beforeNewInstance in interface Interceptor
See Also:
Interceptor.beforeNewInstance(java.lang.Class)

afterNewInstance

public void afterNewInstance(java.lang.Class pvInterfaceClass,
                             java.lang.Object pvProxyObject)
Description copied from interface: Interceptor
After call newInstance.

Specified by:
afterNewInstance in interface Interceptor
See Also:
Interceptor.afterNewInstance(java.lang.Class, java.lang.Object)

beforeMethodInvocation

public void beforeMethodInvocation(InterceptorContext pvInterceptorContext)
Description copied from interface: Interceptor
Before call doInvoke.

Specified by:
beforeMethodInvocation in interface Interceptor
See Also:
Interceptor.beforeMethodInvocation(net.sf.crispy.InterceptorContext)

afterMethodInvocation

public void afterMethodInvocation(InterceptorContext pvInterceptorContext)
Description copied from interface: Interceptor
After call doInvoke.

Specified by:
afterMethodInvocation in interface Interceptor
See Also:
Interceptor.afterMethodInvocation(net.sf.crispy.InterceptorContext)

onError

public void onError(java.lang.Throwable pvThrowable)
Description copied from interface: Interceptor
Call if a Exception is thrown.

Specified by:
onError in interface Interceptor
See Also:
Interceptor.onError(java.lang.Throwable)

getStopTimeNewInstance

public long getStopTimeNewInstance()

getStopTimeInvokeMethod

public long getStopTimeInvokeMethod()

getOnErrorCounter

public int getOnErrorCounter()

clearStopTimeInvokeMethod

public void clearStopTimeInvokeMethod()

clearStopTimeNewInstance

public void clearStopTimeNewInstance()


Copyright © 2005-2006 Crispy. All Rights Reserved.