Package javax.el

Class ELUtil

java.lang.Object
javax.el.ELUtil

class ELUtil extends 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 Details

  • Constructor Details

    • ELUtil

      private ELUtil()

      This class may not be constructed.

  • Method Details

    • setupProperties

      private static void setupProperties()
    • getCurrentInstance

      private static Map<String,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(Map<String,ResourceBundle> context)

      Replace the Map with the argument context.

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

      public static String getExceptionMessageString(ELContext context, String messageId)
    • getExceptionMessageString

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

      static ExpressionFactory getExpressionFactory()
    • findConstructor

      static Constructor<?> findConstructor(Class<?> klass, Class<?>[] paramTypes, Object[] params)
    • invokeConstructor

      static Object invokeConstructor(ELContext context, Constructor<?> c, Object[] params)
    • findMethod

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

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