|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.aspects.util.InvocationMonitor
public final class InvocationMonitor
Invocation monitor to count per class and see the invocation order.
| Field Summary | |
|---|---|
private static Map<Class<?>,Integer> |
s_classCounterMap
Private thread-save class-specific counter variables. |
private static List<Class<?>> |
s_invocationList
Private thread-save list of count invocations. |
| Constructor Summary | |
|---|---|
private |
InvocationMonitor()
Hide default constructor. |
| Method Summary | |
|---|---|
static void |
clear()
Clears the invocation monitor. |
static int |
getCounter(Class<?> clazz)
|
static List<Class<?>> |
getInvocationList()
|
static void |
incrementCounter(Class<?> clazz)
Increments the counter variable of the given class. |
static void |
initCounter(Class<?> clazz)
Initializes the static counter to zero for the given clazz. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static Map<Class<?>,Integer> s_classCounterMap
private static List<Class<?>> s_invocationList
| Constructor Detail |
|---|
private InvocationMonitor()
| Method Detail |
|---|
public static void clear()
public static void initCounter(Class<?> clazz)
clazz - Is the counter class.public static int getCounter(Class<?> clazz)
clazz - Is the counter class.
public static void incrementCounter(Class<?> clazz)
clazz - Is the counter class.public static List<Class<?>> getInvocationList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||