com.creamtec.ajaxswing.core
Class ThreadManager

java.lang.Object
  extended by com.creamtec.ajaxswing.core.ThreadManager

public class ThreadManager
extends java.lang.Object

Manages associations between objects and AjaxSwing threads


Constructor Summary
ThreadManager()
           
 
Method Summary
static ThreadManager getInstance()
          Returns the instance of ThreadManager, associated with this client
static AjaxSwingThread getMyThread(java.lang.Object obj)
          Returns AjaxSwingThread associated with the given object
static void setMyThread(java.lang.Object obj, AjaxSwingThread thread)
          Establishes association between the given object and the thread.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadManager

public ThreadManager()
Method Detail

getMyThread

public static AjaxSwingThread getMyThread(java.lang.Object obj)
Returns AjaxSwingThread associated with the given object

Parameters:
obj - Object
Returns:
AjaxSwingThread or null

setMyThread

public static void setMyThread(java.lang.Object obj,
                               AjaxSwingThread thread)
Establishes association between the given object and the thread. The association is used to lookup the instance of the client agent that owns the object.

Parameters:
obj - Object
thread - AjaxSwingThread

getInstance

public static ThreadManager getInstance()
Returns the instance of ThreadManager, associated with this client



Copyright © 2000-2012 CreamTec LLC. All Rights Reserved.