org.compass.core.converter.dynamic
Class ThreadSafeExpressionEvaluator

java.lang.Object
  extended by 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

Constructor Summary
ThreadSafeExpressionEvaluator(int initialPoolSize, int maxPoolSize, ExpressionEvaluatorFactory expressionEvaluatorFactory)
           
 
Method Summary
 Object evaluate(Object o, ResourcePropertyMapping resourcePropertyMapping)
          Evaluates an expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSafeExpressionEvaluator

public ThreadSafeExpressionEvaluator(int initialPoolSize,
                                     int maxPoolSize,
                                     ExpressionEvaluatorFactory expressionEvaluatorFactory)
Method Detail

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 expression
resourcePropertyMapping - The resource mapping
Returns:
The evaluated object
Throws:
ConversionException


Copyright (c) 2004-2008 The Compass Project.