net.sf.crispy.interceptor
Class LogInterceptor

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

public class LogInterceptor
extends java.lang.Object
implements Interceptor

Log every interceptor call with log level "info".

Author:
Linke

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
LogInterceptor()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

LogInterceptor

public LogInterceptor()
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)


Copyright © 2005-2006 Crispy. All Rights Reserved.