public class BlockingVariableMapper extends javax.el.VariableMapper
AliasVariableMapper
optimized behavior.
Keeps variables in the current context, but without aliasing variables for efficiency. Compared to the standard variable mappers, adds blocking features, given patterns, to allow compartmenting variables contexts (inside layout widget trees for instance).
Modifier and Type | Field and Description |
---|---|
protected List<String> |
blockedPatterns |
protected javax.el.VariableMapper |
orig |
protected Map<String,javax.el.ValueExpression> |
vars |
Constructor and Description |
---|
BlockingVariableMapper(javax.el.VariableMapper orig) |
Modifier and Type | Method and Description |
---|---|
void |
addBlockedPattern(String blockedPattern) |
List<String> |
getBlockedPatterns() |
protected javax.el.ValueExpression |
getNullValueExpression() |
Map<String,javax.el.ValueExpression> |
getVariables() |
boolean |
hasVariable(String variable) |
javax.el.ValueExpression |
resolveVariable(String variable) |
void |
setBlockedPatterns(List<String> blockedPatterns) |
javax.el.ValueExpression |
setVariable(String variable,
javax.el.ValueExpression expression) |
String |
toString() |
protected final javax.el.VariableMapper orig
protected List<String> blockedPatterns
public BlockingVariableMapper(javax.el.VariableMapper orig)
public javax.el.ValueExpression resolveVariable(String variable)
resolveVariable
in class javax.el.VariableMapper
public javax.el.ValueExpression setVariable(String variable, javax.el.ValueExpression expression)
setVariable
in class javax.el.VariableMapper
public boolean hasVariable(String variable)
protected javax.el.ValueExpression getNullValueExpression()
public Map<String,javax.el.ValueExpression> getVariables()
public List<String> getBlockedPatterns()
public void setBlockedPatterns(List<String> blockedPatterns)
public void addBlockedPattern(String blockedPattern)
Copyright © 2016 Nuxeo SA. All rights reserved.