Class ELContextDecorator

java.lang.Object
jakarta.el.ELContext
org.apache.myfaces.core.api.shared.ELContextDecorator

public class ELContextDecorator extends jakarta.el.ELContext
This ELContext is used to hook into the EL handling, by decorating the ELResolver chain with a custom ELResolver.
  • Constructor Details

    • ELContextDecorator

      public ELContextDecorator(jakarta.el.ELContext elContext, jakarta.el.ELResolver interceptingResolver)
      Only used by ValueExpressionResolver.
      Parameters:
      elContext - The standard ELContext. All method calls, except getELResolver, are delegated to it.
      interceptingResolver - The ELResolver to be returned by getELResolver.
  • Method Details

    • getELResolver

      public jakarta.el.ELResolver getELResolver()
      This is the important one, it returns the passed ELResolver.
      Specified by:
      getELResolver in class jakarta.el.ELContext
      Returns:
      The ELResolver passed into the constructor.
    • getFunctionMapper

      public jakarta.el.FunctionMapper getFunctionMapper()
      Specified by:
      getFunctionMapper in class jakarta.el.ELContext
    • getVariableMapper

      public jakarta.el.VariableMapper getVariableMapper()
      Specified by:
      getVariableMapper in class jakarta.el.ELContext
    • setPropertyResolved

      public void setPropertyResolved(boolean resolved)
      Overrides:
      setPropertyResolved in class jakarta.el.ELContext
    • isPropertyResolved

      public boolean isPropertyResolved()
      Overrides:
      isPropertyResolved in class jakarta.el.ELContext
    • putContext

      public void putContext(Class key, Object contextObject)
      Overrides:
      putContext in class jakarta.el.ELContext
    • getContext

      public Object getContext(Class key)
      Overrides:
      getContext in class jakarta.el.ELContext
    • getLocale

      public Locale getLocale()
      Overrides:
      getLocale in class jakarta.el.ELContext
    • setLocale

      public void setLocale(Locale locale)
      Overrides:
      setLocale in class jakarta.el.ELContext