|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.client.events.EntitiesContext
public class EntitiesContext
Tracks all stack information for JEMMObjects. This class is thread safe. All listener events however are executed outside of any lock and can happen in parallel.
Constructor Summary | |
---|---|
EntitiesContext(LockTracer lockTracer,
MethodContextListener listener)
Creates an Event Generator with all context aware events going to the passed listener. |
Method Summary | |
---|---|
void |
enterMethod(java.lang.Object entity,
Descriptor method)
Marks an method entered and tracks appropriately the current thread as entering the method on the entity. |
void |
exitMethod(java.lang.Object entity,
Descriptor method)
Exits a method, removing any contexts that have been created. |
boolean |
isEntityEntered(java.lang.Object entity)
Determines if any thread has entered the entity. |
boolean |
isMethodEntered(java.lang.Object entity,
Descriptor method)
Determines if the current thread is currently in the entity and method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntitiesContext(LockTracer lockTracer, MethodContextListener listener)
listener
- Method Detail |
---|
public void enterMethod(java.lang.Object entity, Descriptor method)
enterMethod
in interface StackTracer
entity
- The object enteredmethod
- The method by which it was enteredpublic boolean isMethodEntered(java.lang.Object entity, Descriptor method)
isMethodEntered
in interface StackTracer
entity
- The objectmethod
- The method on the object
public boolean isEntityEntered(java.lang.Object entity)
isEntityEntered
in interface StackTracer
entity
- The object to check
public void exitMethod(java.lang.Object entity, Descriptor method)
exitMethod
in interface StackTracer
entity
- The object being exitedmethod
- The method from which the thread is exiting
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |