org.mule.el.mvel
Class MVELExpressionExecutor

java.lang.Object
  extended by org.mule.el.mvel.MVELExpressionExecutor
All Implemented Interfaces:
ExpressionExecutor<MVELExpressionLanguageContext>

public class MVELExpressionExecutor
extends Object
implements ExpressionExecutor<MVELExpressionLanguageContext>


Field Summary
protected static int COMPILED_EXPRESSION_MAX_CACHE_SIZE
           
protected  LRUMap compiledExpressionsCache
           
protected  org.mvel2.ParserContext parserContext
           
 
Constructor Summary
MVELExpressionExecutor(org.mvel2.ParserContext parserContext)
           
 
Method Summary
 Object execute(String expression, MVELExpressionLanguageContext context)
          Execute an expression using using the provided context.
protected  Serializable getCompiledExpression(String expression)
          Compile an expression.
 void validate(String expression)
          Validate the expression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPILED_EXPRESSION_MAX_CACHE_SIZE

protected static final int COMPILED_EXPRESSION_MAX_CACHE_SIZE
See Also:
Constant Field Values

parserContext

protected org.mvel2.ParserContext parserContext

compiledExpressionsCache

protected LRUMap compiledExpressionsCache
Constructor Detail

MVELExpressionExecutor

public MVELExpressionExecutor(org.mvel2.ParserContext parserContext)
Method Detail

execute

public Object execute(String expression,
                      MVELExpressionLanguageContext context)
Description copied from interface: ExpressionExecutor
Execute an expression using using the provided context.

Specified by:
execute in interface ExpressionExecutor<MVELExpressionLanguageContext>
Returns:

validate

public void validate(String expression)
              throws InvalidExpressionException
Description copied from interface: ExpressionExecutor
Validate the expression

Specified by:
validate in interface ExpressionExecutor<MVELExpressionLanguageContext>
Throws:
InvalidExpressionException

getCompiledExpression

protected Serializable getCompiledExpression(String expression)
Compile an expression. If such expression was compiled before then return the compilation output from a cache.

Parameters:
expression - Expression to be compiled
Returns:
A Serializable object representing the compiled expression


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.