|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.axiom.testutils.InvocationCounter
public class InvocationCounter
Utility class that counts the number of invocations on one or more objects. It also counts the number of exceptions thrown by these invocations. The class uses dynamic proxies to implement this feature.
This class is thread safe.
| Constructor Summary | |
|---|---|
InvocationCounter()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
createProxy(java.lang.Object target)
Create a new proxy. |
int |
getExceptionCount()
Get the number of exceptions counted by this instance. |
int |
getInvocationCount()
Get the number of invocations counted by this instance. |
void |
reset()
Reset all counters to zero. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InvocationCounter()
| Method Detail |
|---|
public java.lang.Object createProxy(java.lang.Object target)
target - the target instance
public int getInvocationCount()
public int getExceptionCount()
public void reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||