Class VariableMapperWrapper


  • public class VariableMapperWrapper
    extends jakarta.el.VariableMapper
    Utility class for wrapping another VariableMapper with a new context, represented by a Map. Modifications occur to the Map instance, but resolve against the wrapped VariableMapper if the Map doesn't contain the ValueExpression requested.
    Version:
    $Id$
    Author:
    Jacob Hookom
    • Constructor Detail

      • VariableMapperWrapper

        public VariableMapperWrapper​(jakarta.el.VariableMapper orig)
        Parameters:
        orig - the original variable mapper to be wrapped
    • Method Detail

      • resolveVariable

        public jakarta.el.ValueExpression resolveVariable​(String variable)
        First tries to resolve agains the inner Map, then the wrapped ValueExpression.
        Specified by:
        resolveVariable in class jakarta.el.VariableMapper
        See Also:
        VariableMapper.resolveVariable(java.lang.String)
      • setVariable

        public jakarta.el.ValueExpression setVariable​(String variable,
                                                      jakarta.el.ValueExpression expression)
        Set the ValueExpression on the inner Map instance.
        Specified by:
        setVariable in class jakarta.el.VariableMapper
        See Also:
        VariableMapper.setVariable(java.lang.String, jakarta.el.ValueExpression)