Class SimpleContext

java.lang.Object
javax.el.ELContext
de.odysseus.el.util.SimpleContext

public class SimpleContext extends javax.el.ELContext
Simple context implementation.
  • Field Details

  • Constructor Details

    • SimpleContext

      public SimpleContext()
      Create a context.
    • SimpleContext

      public SimpleContext(javax.el.ELResolver resolver)
      Create a context, use the specified resolver.
  • Method Details

    • setFunction

      public void setFunction(String prefix, String localName, Method method)
      Define a function.
    • setVariable

      public javax.el.ValueExpression setVariable(String name, javax.el.ValueExpression expression)
      Define a variable.
    • getFunctionMapper

      public javax.el.FunctionMapper getFunctionMapper()
      Get our function mapper.
      Specified by:
      getFunctionMapper in class javax.el.ELContext
    • getVariableMapper

      public javax.el.VariableMapper getVariableMapper()
      Get our variable mapper.
      Specified by:
      getVariableMapper in class javax.el.ELContext
    • getELResolver

      public javax.el.ELResolver getELResolver()
      Get our resolver. Lazy initialize to a SimpleResolver if necessary.
      Specified by:
      getELResolver in class javax.el.ELContext
    • setELResolver

      public void setELResolver(javax.el.ELResolver resolver)
      Set our resolver.
      Parameters:
      resolver -