Top Description Fields Constructors Methods
javax.el

pack-priv Class ELUtil

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, .Method, .Constructor, .Modifier, java.text.MessageFormat, java.util.HashMap, .Locale, .Map, .MissingResourceException, .ResourceBundle

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.

Authors
edburns, Kin-man Chung

Field Summary

Modifier and TypeField and Description
public static ExpressionFactory
private static ThreadLocal<Map<String, ResourceBundle>>
instance

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

Constructor Summary

AccessConstructor and Description
private
ELUtil()

This class may not be constructed.

Method Summary

Modifier and TypeMethod and Description
pack-priv static Constructor<?>
findConstructor(Class<?> klass, Class<?>[] paramTypes, Object[] params)

pack-priv static Method
findMethod(Class<?> klass, String method, Class<?>[] paramTypes, Object[] params, boolean staticOnly)

private static Map<String, ResourceBundle>

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.
getCurrentInstance
()

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

pack-priv static ExpressionFactory
pack-priv static Object
invokeConstructor(ELContext context, Constructor<?> c, Object[] params)

pack-priv static Object
invokeMethod(ELContext context, Method m, Object base, Object[] params)

private static void
setCurrentInstance(Map<String, ResourceBundle>
the Map to be stored in ThreadLocal storage.
context
)

Replace the Map with the argument context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exprFactoryback to summary
public static ExpressionFactory exprFactory
instanceback to summary
private static ThreadLocal<Map<String, ResourceBundle>> instance

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

Constructor Detail

ELUtilback to summary
private ELUtil()

This class may not be constructed.

Method Detail

findConstructorback to summary
pack-priv static Constructor<?> findConstructor(Class<?> klass, Class<?>[] paramTypes, Object[] params)
findMethodback to summary
pack-priv static Method findMethod(Class<?> klass, String method, Class<?>[] paramTypes, Object[] params, boolean staticOnly)
getCurrentInstanceback to summary
private static Map<String, ResourceBundle> getCurrentInstance()
Returns:Map<String, ResourceBundle>

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.

getExceptionMessageStringback to summary
public static String getExceptionMessageString(ELContext context, String messageId)
getExceptionMessageStringback to summary
public static String getExceptionMessageString(ELContext context, String messageId, Object[] params)
getExpressionFactoryback to summary
pack-priv static ExpressionFactory getExpressionFactory()
invokeConstructorback to summary
pack-priv static Object invokeConstructor(ELContext context, Constructor<?> c, Object[] params)
invokeMethodback to summary
pack-priv static Object invokeMethod(ELContext context, Method m, Object base, Object[] params)
setCurrentInstanceback to summary
private static void setCurrentInstance(Map<String, ResourceBundle> context)

Replace the Map with the argument context.

Parameters
context:Map<String, ResourceBundle>

the Map to be stored in ThreadLocal storage.