org.springframework.aop.framework
Class CountingBeforeAdvice

java.lang.Object
  extended by org.springframework.aop.framework.MethodCounter
      extended by org.springframework.aop.framework.CountingBeforeAdvice
All Implemented Interfaces:
Serializable, Advice, BeforeAdvice, MethodBeforeAdvice

public class CountingBeforeAdvice
extends MethodCounter
implements MethodBeforeAdvice

Simple before advice example that we can use for counting checks.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
CountingBeforeAdvice()
           
 
Method Summary
 void before(Method m, Object[] args, Object target)
           
 
Methods inherited from class org.springframework.aop.framework.MethodCounter
count, count, equals, getCalls, getCalls
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingBeforeAdvice

public CountingBeforeAdvice()
Method Detail

before

public void before(Method m,
                   Object[] args,
                   Object target)
            throws Throwable
Specified by:
before in interface MethodBeforeAdvice
Throws:
Throwable


Copyright ? 2005-2008 Spring Framework. All Rights Reserved.