org.springframework.aop.interceptor
Class DebugInterceptor

java.lang.Object
  extended byorg.springframework.aop.interceptor.DebugInterceptor
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class DebugInterceptor
extends java.lang.Object
implements org.aopalliance.intercept.MethodInterceptor

AOP Alliance MethodInterceptor that can be introduced in a chain to display verbose information about intercepted invocations to the console.

Version:
$Id: DebugInterceptor.java,v 1.3 2004/03/18 02:46:09 trisberg Exp $
Author:
Rod Johnson

Constructor Summary
DebugInterceptor()
           
 
Method Summary
 int getCount()
          Return the number of times this interceptor has been invoked
 java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugInterceptor

public DebugInterceptor()
Method Detail

invoke

public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.aopalliance.intercept.MethodInterceptor
Throws:
java.lang.Throwable
See Also:
MethodInterceptor.invoke(MethodInvocation)

getCount

public int getCount()
Return the number of times this interceptor has been invoked

Returns:
the number of times this interceptor has been invoked


Copyright (C) 2003-2004 The Spring Framework Project.