Interceptor.java :  » Web-Services » crispy » net » sf » crispy » Java Open Source

Java Open Source » Web Services » crispy 
crispy » net » sf » crispy » Interceptor.java
/*
 * 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);
    
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.