org.apache.jetspeed.aggregator
Class CurrentWorkerContext

java.lang.Object
  extended by org.apache.jetspeed.aggregator.CurrentWorkerContext

public final class CurrentWorkerContext
extends java.lang.Object

Maintains a context attributes for the current Thread

Version:
$Id: $
Author:
David Sean Taylor

Method Summary
static java.lang.Object getAttribute(java.lang.String name)
           
static java.util.Enumeration getAttributeNames()
          Returns an Enumeration containing the names of the attributes available to this Thread.
static boolean getParallelRenderingMode()
           
static void removeAllAttributes()
          Removes all attributes from this Thread.
static void removeAttribute(java.lang.String name)
          Removes an attribute from this Thread.
static void setAttribute(java.lang.String name, java.lang.Object o)
          Stores an attribute in this Thread.
static void setParallelRenderingMode(boolean parallelMode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributeNames

public static java.util.Enumeration getAttributeNames()
Returns an Enumeration containing the names of the attributes available to this Thread. This method returns an empty Enumeration if the thread has no attributes available to it.


getAttribute

public static java.lang.Object getAttribute(java.lang.String name)
Parameters:
attrName - Locale for this Thread
Returns:
an attribute in the current Thread

setAttribute

public static void setAttribute(java.lang.String name,
                                java.lang.Object o)
Stores an attribute in this Thread.

Parameters:
name - - a String specifying the name of the attribute
o - - the Object to be stored

removeAttribute

public static void removeAttribute(java.lang.String name)
Removes an attribute from this Thread.

Parameters:
name - - a String specifying the name of the attribute

removeAllAttributes

public static void removeAllAttributes()
Removes all attributes from this Thread.


setParallelRenderingMode

public static void setParallelRenderingMode(boolean parallelMode)

getParallelRenderingMode

public static boolean getParallelRenderingMode()


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.