org.apache.taglibs.standard.lang.support
Class ExpressionEvaluatorManager

java.lang.Object
  extended by org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager

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.

Author:
Shawn Bayern

Field Summary
static java.lang.String EVALUATOR_CLASS
           
 
Constructor Summary
ExpressionEvaluatorManager()
           
 
Method Summary
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)
          Gets an ExpressionEvaluator from the cache, or seeds the cache if we haven't seen a particular ExpressionEvaluator before.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVALUATOR_CLASS

public static final java.lang.String EVALUATOR_CLASS
See Also:
Constant Field Values
Constructor Detail

ExpressionEvaluatorManager

public ExpressionEvaluatorManager()
Method Detail

evaluate

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
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.

Throws:
javax.servlet.jsp.JspException

evaluate

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
Invokes the evaluate() method on the "active" ExpressionEvaluator for the given pageContext.

Throws:
javax.servlet.jsp.JspException

getEvaluatorByName

public static ExpressionEvaluator getEvaluatorByName(java.lang.String name)
                                              throws javax.servlet.jsp.JspException
Gets an ExpressionEvaluator from the cache, or seeds the cache if we haven't seen a particular ExpressionEvaluator before.

Throws:
javax.servlet.jsp.JspException

coerce

public static java.lang.Object coerce(java.lang.Object value,
                                      java.lang.Class classe)
                               throws javax.servlet.jsp.JspException
Performs a type conversion according to the EL's rules.

Throws:
javax.servlet.jsp.JspException


Copyright (c) 1999-2012 Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.