javax.el
Class ELUtil

java.lang.Object
  extended by javax.el.ELUtil

 class ELUtil
extends java.lang.Object

Utility methods for this portion of the EL implementation

Methods on this class use a Map instance stored in ThreadLocal storage to minimize the performance impact on operations that take place multiple times on a single Thread. The keys and values of the Map are implementation private.

Author:
edburns

Field Summary
private static java.lang.ThreadLocal instance
          The ThreadLocal variable used to record the FacesContext instance for each processing thread.
 
Constructor Summary
private ELUtil()
          This class may not be constructed.
 
Method Summary
private static java.util.Map getCurrentInstance()
           
private static java.lang.ClassLoader getCurrentLoader(java.lang.Object fallbackClass)
           
static java.lang.String getExceptionMessageString(ELContext context, java.lang.String messageId)
           
static java.lang.String getExceptionMessageString(ELContext context, java.lang.String messageId, java.lang.Object[] params)
           
private static void setCurrentInstance(java.util.Map context)
          Replace the Map with the argument context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static java.lang.ThreadLocal instance

The ThreadLocal variable used to record the FacesContext instance for each processing thread.

Constructor Detail

ELUtil

private ELUtil()

This class may not be constructed.

Method Detail

getCurrentInstance

private static java.util.Map getCurrentInstance()
Returns:
a Map stored in ThreadLocal storage. This may be used by methods of this class to minimize the performance impact for operations that may take place multiple times on a given Thread instance.

setCurrentInstance

private static void setCurrentInstance(java.util.Map context)

Replace the Map with the argument context.

Parameters:
context - the Map to be stored in ThreadLocal storage.

getCurrentLoader

private static java.lang.ClassLoader getCurrentLoader(java.lang.Object fallbackClass)

getExceptionMessageString

public static java.lang.String getExceptionMessageString(ELContext context,
                                                         java.lang.String messageId)

getExceptionMessageString

public static java.lang.String getExceptionMessageString(ELContext context,
                                                         java.lang.String messageId,
                                                         java.lang.Object[] params)


Portions Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved. Portions Copyright © 2005 Sun Microsystems Inc. All Rights Reserved