public class ExpressionEvaluatorManager
extends java.lang.Object
A conduit to the JSTL EL. Based on...
An implementation of the ExpressionEvaluatorManager called for by the JSTL rev1 draft. This class is responsible for delegating a request for expression evaluating to the particular, "active" ExpressionEvaluator for the given point in the PageContext object passed in.
Modifier and Type | Field and Description |
---|---|
private static ExpressionEvaluator |
EVALUATOR |
static java.lang.String |
EVALUATOR_CLASS |
private static Logger |
logger |
private static java.util.concurrent.ConcurrentMap<java.lang.String,ExpressionEvaluator> |
nameMap |
Constructor and Description |
---|
ExpressionEvaluatorManager() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
coerce(java.lang.Object value,
java.lang.Class classe)
Performs a type conversion according to the EL's rules.
|
static java.lang.Object |
evaluate(java.lang.String attributeName,
java.lang.String expression,
java.lang.Class expectedType,
javax.servlet.jsp.PageContext pageContext)
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.
|
static java.lang.Object |
evaluate(java.lang.String attributeName,
java.lang.String expression,
java.lang.Class expectedType,
javax.servlet.jsp.tagext.Tag tag,
javax.servlet.jsp.PageContext pageContext)
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.
|
static ExpressionEvaluator |
getEvaluatorByName(java.lang.String name)
Deprecated.
|
static java.lang.String |
validate(java.lang.String attributeName,
java.lang.String expression)
Validates an expression.
|
public static final java.lang.String EVALUATOR_CLASS
private static final ExpressionEvaluator EVALUATOR
private static final java.util.concurrent.ConcurrentMap<java.lang.String,ExpressionEvaluator> nameMap
private static final Logger logger
public static java.lang.Object evaluate(java.lang.String attributeName, java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.tagext.Tag tag, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.Object evaluate(java.lang.String attributeName, java.lang.String expression, java.lang.Class expectedType, javax.servlet.jsp.PageContext pageContext) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
@Deprecated public static ExpressionEvaluator getEvaluatorByName(java.lang.String name) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.Object coerce(java.lang.Object value, java.lang.Class classe) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
public static java.lang.String validate(java.lang.String attributeName, java.lang.String expression)
attributeName
- the name of the attribute containing the expressionexpression
- the expression to validate