Package javax.el
Class ELUtil
- java.lang.Object
-
- 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.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
EL_BC22_PROPERTY
private static ExpressionFactory
exprFactory
private static java.lang.ThreadLocal<java.util.Map<java.lang.String,java.util.ResourceBundle>>
instance
TheThreadLocal
variable used to record thejavax.faces.context.FacesContext
instance for each processing thread.(package private) static java.util.Properties
properties
-
Constructor Summary
Constructors Modifier Constructor Description private
ELUtil()
This class may not be constructed.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static java.lang.reflect.Constructor<?>
findConstructor(java.lang.Class<?> klass, java.lang.Class<?>[] paramTypes, java.lang.Object[] params)
(package private) static java.lang.reflect.Method
findMethod(java.lang.Class<?> klass, java.lang.String method, java.lang.Class<?>[] paramTypes, java.lang.Object[] params, boolean staticOnly)
private static java.util.Map<java.lang.String,java.util.ResourceBundle>
getCurrentInstance()
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)
(package private) static ExpressionFactory
getExpressionFactory()
(package private) static java.lang.Object
invokeConstructor(ELContext context, java.lang.reflect.Constructor<?> c, java.lang.Object[] params)
(package private) static java.lang.Object
invokeMethod(ELContext context, java.lang.reflect.Method m, java.lang.Object base, java.lang.Object[] params)
private static void
setCurrentInstance(java.util.Map<java.lang.String,java.util.ResourceBundle> context)
Replace the Map with the argument context.private static void
setupProperties()
-
-
-
Field Detail
-
EL_BC22_PROPERTY
private static final java.lang.String EL_BC22_PROPERTY
- See Also:
- Constant Field Values
-
properties
static final java.util.Properties properties
-
exprFactory
private static ExpressionFactory exprFactory
-
instance
private static java.lang.ThreadLocal<java.util.Map<java.lang.String,java.util.ResourceBundle>> instance
The
ThreadLocal
variable used to record thejavax.faces.context.FacesContext
instance for each processing thread.
-
-
Method Detail
-
setupProperties
private static void setupProperties()
-
getCurrentInstance
private static java.util.Map<java.lang.String,java.util.ResourceBundle> 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<java.lang.String,java.util.ResourceBundle> context)
Replace the Map with the argument context.
- Parameters:
context
- the Map to be stored in ThreadLocal storage.
-
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)
-
getExpressionFactory
static ExpressionFactory getExpressionFactory()
-
findConstructor
static java.lang.reflect.Constructor<?> findConstructor(java.lang.Class<?> klass, java.lang.Class<?>[] paramTypes, java.lang.Object[] params)
-
invokeConstructor
static java.lang.Object invokeConstructor(ELContext context, java.lang.reflect.Constructor<?> c, java.lang.Object[] params)
-
findMethod
static java.lang.reflect.Method findMethod(java.lang.Class<?> klass, java.lang.String method, java.lang.Class<?>[] paramTypes, java.lang.Object[] params, boolean staticOnly)
-
invokeMethod
static java.lang.Object invokeMethod(ELContext context, java.lang.reflect.Method m, java.lang.Object base, java.lang.Object[] params)
-
-