org.sourceforge.jemm.client.events
Class EntityContext
java.lang.Object
org.sourceforge.jemm.client.events.SimpleContext
org.sourceforge.jemm.client.events.EntityContext
- All Implemented Interfaces:
- Context
public class EntityContext
- extends SimpleContext
A context that represents a JEMMObject within the system.
This class is thread safe.
- Author:
- Paul
Method Summary |
void |
add(Descriptor method)
|
void |
add(Descriptor method,
java.lang.Thread thread)
Adds a stack trace for both this entity and for the MethodContext. |
boolean |
has(Descriptor method)
If the method has any threads within its context then returns true,
otherwise returns false. |
boolean |
has(Descriptor method,
java.lang.Thread thread)
|
void |
remove(Descriptor method)
|
void |
remove(Descriptor method,
java.lang.Thread thread)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EntityContext
public EntityContext(java.lang.Object obj)
add
public void add(Descriptor method,
java.lang.Thread thread)
- Adds a stack trace for both this entity and for the MethodContext.
- Parameters:
method
- The method to add tothread
- The thread to add
add
public void add(Descriptor method)
has
public boolean has(Descriptor method,
java.lang.Thread thread)
has
public boolean has(Descriptor method)
- If the method has any threads within its context then returns true,
otherwise returns false.
- Parameters:
method
- The method to check
- Returns:
remove
public void remove(Descriptor method,
java.lang.Thread thread)
remove
public void remove(Descriptor method)
Copyright © 2009. All Rights Reserved.