org.mule.expression
Class StringExpressionEvaluator

java.lang.Object
  extended by org.mule.expression.StringExpressionEvaluator
All Implemented Interfaces:
MuleContextAware, ExpressionEvaluator, NamedObject

public class StringExpressionEvaluator
extends Object
implements ExpressionEvaluator, MuleContextAware

Will process an expression string that can contain other expressions


Field Summary
static String NAME
           
 
Constructor Summary
StringExpressionEvaluator()
           
 
Method Summary
 Object evaluate(String expression, MuleMessage message)
          Extracts a single property from the message
 String getName()
          Gts the name of the object
 void setMuleContext(MuleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

StringExpressionEvaluator

public StringExpressionEvaluator()
Method Detail

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

evaluate

public Object evaluate(String expression,
                       MuleMessage message)
Description copied from interface: ExpressionEvaluator
Extracts a single property from the message

Specified by:
evaluate in interface ExpressionEvaluator
Parameters:
expression - the property expression or expression
message - the message to extract from
Returns:
the result of the extraction or null if the property was not found

getName

public String getName()
Gts the name of the object

Specified by:
getName in interface NamedObject
Returns:
the name of the object


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