net.sourceforge.stripes.validation.expression
Class CommonsElExpressionExecutor

java.lang.Object
  extended by net.sourceforge.stripes.validation.expression.ExpressionExecutorSupport
      extended by net.sourceforge.stripes.validation.expression.CommonsElExpressionExecutor
All Implemented Interfaces:
ExpressionExecutor

public class CommonsElExpressionExecutor
extends ExpressionExecutorSupport

An implementation of ExpressionExecutor that relies on the Apache Commons EL implementation being available in the classpath. This is the case with Tomcat 5.5 and can be made so with other containers by including commons-el.jar in the web application's classpath.

Since:
Stripes 1.5
Author:
Tim Fennell

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sourceforge.stripes.validation.expression.ExpressionExecutorSupport
ExpressionExecutorSupport.BeanVariableResolver
 
Field Summary
static String COMMONS_CLASS
          The FQN of the expression evaluator class in commons-el.
 
Fields inherited from interface net.sourceforge.stripes.validation.expression.ExpressionExecutor
ERROR_DEFAULT_SCOPE, ERROR_KEY, THIS
 
Constructor Summary
CommonsElExpressionExecutor()
          Default constructor that checks to make sure this class can work, and if not throws an exception.
 
Method Summary
protected  ExpressionEvaluator getEvaluator()
          Attempts to create an expression evaluator by reflecting to find the implementation in the apache commons-el project.
 
Methods inherited from class net.sourceforge.stripes.validation.expression.ExpressionExecutorSupport
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMONS_CLASS

public static final String COMMONS_CLASS
The FQN of the expression evaluator class in commons-el.

See Also:
Constant Field Values
Constructor Detail

CommonsElExpressionExecutor

public CommonsElExpressionExecutor()
Default constructor that checks to make sure this class can work, and if not throws an exception.

Method Detail

getEvaluator

protected ExpressionEvaluator getEvaluator()
Attempts to create an expression evaluator by reflecting to find the implementation in the apache commons-el project.

Specified by:
getEvaluator in class ExpressionExecutorSupport
Returns:
an instance of ExpressionEvaluatorImpl if it can, null otherwise


? Copyright 2005-2006, Stripes Development Team.