org.sourceforge.jemm.client.events
Class EntityContext

java.lang.Object
  extended by org.sourceforge.jemm.client.events.SimpleContext
      extended by 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

Constructor Summary
EntityContext(java.lang.Object obj)
           
 
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 org.sourceforge.jemm.client.events.SimpleContext
add, add, has, has, hasAny, remove, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityContext

public EntityContext(java.lang.Object obj)
Method Detail

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 to
thread - 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.