Package org.apache.el.lang
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VariableMappercreate()Returns the momento mapper containing all resolved variables.ValueExpressionresolveVariable(java.lang.String variable)ValueExpressionsetVariable(java.lang.String variable, ValueExpression expression)
-
-
-
Constructor Detail
-
VariableMapperFactory
public VariableMapperFactory(VariableMapper target)
Constructs a new VariableMapperFactory.- Parameters:
target- The target variable mapper to delegate to- Throws:
java.lang.NullPointerException- if target is null
-
-
Method Detail
-
create
public VariableMapper create()
Returns the momento mapper containing all resolved variables.- Returns:
- the momento mapper, or
nullif no variables have been resolved
-
resolveVariable
public ValueExpression resolveVariable(java.lang.String variable)
- Specified by:
resolveVariablein classVariableMapper
-
setVariable
public ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
- Specified by:
setVariablein classVariableMapper
-
-