org.springframework.aop.framework
Class MethodCounter

java.lang.Object
  extended by org.springframework.aop.framework.MethodCounter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CountingBeforeAdvice

public class MethodCounter
extends Object
implements Serializable

Useful abstract superclass for counting advices etc.

Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
MethodCounter()
           
 
Method Summary
protected  void count(Method m)
           
protected  void count(String methodName)
           
 boolean equals(Object other)
          A bit simplistic: just wants the same class.
 int getCalls()
           
 int getCalls(String methodName)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCounter

public MethodCounter()
Method Detail

count

protected void count(Method m)

count

protected void count(String methodName)

getCalls

public int getCalls(String methodName)

getCalls

public int getCalls()

equals

public boolean equals(Object other)
A bit simplistic: just wants the same class. Doesn't worry about counts.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


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