Class SimpleContext


  • public class SimpleContext
    extends ELContext
    Simple context implementation.
    Author:
    Christoph Beck
    • Constructor Detail

      • SimpleContext

        public SimpleContext()
        Create a context.
      • SimpleContext

        public SimpleContext​(ELResolver resolver)
        Create a context, use the specified resolver.
    • Method Detail

      • setFunction

        public void setFunction​(java.lang.String prefix,
                                java.lang.String localName,
                                java.lang.reflect.Method method)
        Define a function.
      • getFunctionMapper

        public FunctionMapper getFunctionMapper()
        Get our function mapper.
        Specified by:
        getFunctionMapper in class ELContext
        Returns:
        The function mapper to be consulted for the resolution of EL functions.
      • getVariableMapper

        public VariableMapper getVariableMapper()
        Get our variable mapper.
        Specified by:
        getVariableMapper in class ELContext
        Returns:
        The variable mapper to be consulted for the resolution of EL variables.
      • getELResolver

        public ELResolver getELResolver()
        Get our resolver. Lazy initialize to a SimpleResolver if necessary.
        Specified by:
        getELResolver in class ELContext
        Returns:
        The resolver to be consulted for variable and property resolution during expression evaluation.
      • setELResolver

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