org.mmbase.bridge.util
Class CloudThreadLocal

java.lang.Object
  extended by org.mmbase.bridge.util.CloudThreadLocal

public class CloudThreadLocal
extends Object

ThreadLocal to store an MMBase Bridge Cloud

Since:
MMBase-1.9
Version:
$Id: CloudThreadLocal.java 38503 2009-09-08 14:16:12Z michiel $

Constructor Summary
CloudThreadLocal()
           
 
Method Summary
static void bind(Cloud cloud)
          Associates the given cloud with the current thread of execution.
static Cloud currentCloud()
           
static Cloud unbind()
          Unassociate a previously bound cloud from the current thread of execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CloudThreadLocal

public CloudThreadLocal()
Method Detail

currentCloud

public static Cloud currentCloud()

bind

public static void bind(Cloud cloud)
Associates the given cloud with the current thread of execution.

Parameters:
cloud - The cloud to bind.

unbind

public static Cloud unbind()
Unassociate a previously bound cloud from the current thread of execution.

Returns:
The cloud which was unbound.


MMBase 2.0-SNAPSHOT - null