org.compass.core.converter.dynamic
Class ThreadSafeExpressionEvaluator
java.lang.Object
org.compass.core.converter.dynamic.ThreadSafeExpressionEvaluator
- All Implemented Interfaces:
- ExpressionEvaluator
public class ThreadSafeExpressionEvaluator
- extends Object
- implements ExpressionEvaluator
A pool of ExpressionEvaluators where the dynamic expression library
does not provide a high performance thread save evaluation.
- Author:
- kimchy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadSafeExpressionEvaluator
public ThreadSafeExpressionEvaluator(int initialPoolSize,
int maxPoolSize,
ExpressionEvaluatorFactory expressionEvaluatorFactory)
evaluate
public Object evaluate(Object o,
ResourcePropertyMapping resourcePropertyMapping)
throws ConversionException
- Description copied from interface:
ExpressionEvaluator
- Evaluates an expression.
- Specified by:
evaluate in interface ExpressionEvaluator
- Parameters:
o - The data object to be used in the expressionresourcePropertyMapping - The resource mapping
- Returns:
- The evaluated object
- Throws:
ConversionException
Copyright (c) 2004-2008 The Compass Project.