/*
* Created on 09.05.2005 from Linke
*
*/
package net.sf.crispy;
/**
* Intercept the Proxy-Method <code>newInstance</code> and DynamicProxy-Method<code>doInvoke</code> (InvocationHandler), before and after call.
*
* @author Linke
*
*/
public interface Interceptor {
/** Before call <code>newInstance</code>. */
public void beforeNewInstance(Class pvInterfaceClass);
/** After call <code>newInstance</code>. */
public void afterNewInstance(Class pvInterfaceClass, Object pvProxyObject);
/** Before call <code>doInvoke</code>. */
public void beforeMethodInvocation (InterceptorContext pvInterceptorContext);
/** After call <code>doInvoke</code>. */
public void afterMethodInvocation (InterceptorContext pvInterceptorContext);
/** Call if a Exception is thrown. */
public void onError (Throwable pvThrowable);
}
|