VariableMapperFactory (Apache Tomcat 9.0.119 API Documentation)
Description: declaration: package: org.apache.el.lang, class: VariableMapperFactory

# Class VariableMapperFactory

java.lang.Object
javax.el.VariableMapper
org.apache.el.lang.VariableMapperFactory

public class VariableMapperFactory extends VariableMapper
Factory for creating variable mappers that track variable resolutions.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VariableMapperFactory(VariableMapper target)`
  Constructs a new VariableMapperFactory.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `VariableMapper`
  `create()`
  Returns the momento mapper containing all resolved variables.
  `ValueExpression`
  `resolveVariable(String variable)`
  `ValueExpression`
  `setVariable(String variable, ValueExpression expression)`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### VariableMapperFactory

    public VariableMapperFactory(VariableMapper target)
    Constructs a new VariableMapperFactory.
    Parameters:
      `target` - The target variable mapper to delegate to
    Throws:
      `NullPointerException` - if target is null

- ## Method Details

  - ### create

    public VariableMapper create()
    Returns the momento mapper containing all resolved variables.
    Returns:
      the momento mapper, or `null` if no variables have been resolved

  - ### resolveVariable

    public ValueExpression resolveVariable(String variable)
    Specified by:
      `resolveVariable` in class `VariableMapper`

  - ### setVariable

    public ValueExpression setVariable(String variable, ValueExpression expression)
    Specified by:
      `setVariable` in class `VariableMapper`