net.sf.crispy
Interface Interceptor

All Known Implementing Classes:
LogInterceptor, StopWatchInterceptor

public interface Interceptor

Intercept the Proxy-Method newInstance and DynamicProxy-MethoddoInvoke (InvocationHandler), before and after call.

Author:
Linke

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 onError(java.lang.Throwable pvThrowable)
          Call if a Exception is thrown.
 

Method Detail

beforeNewInstance

public void beforeNewInstance(java.lang.Class pvInterfaceClass)
Before call newInstance.


afterNewInstance

public void afterNewInstance(java.lang.Class pvInterfaceClass,
                             java.lang.Object pvProxyObject)
After call newInstance.


beforeMethodInvocation

public void beforeMethodInvocation(InterceptorContext pvInterceptorContext)
Before call doInvoke.


afterMethodInvocation

public void afterMethodInvocation(InterceptorContext pvInterceptorContext)
After call doInvoke.


onError

public void onError(java.lang.Throwable pvThrowable)
Call if a Exception is thrown.



Copyright © 2005-2006 Crispy. All Rights Reserved.