org.mule.module.ognl.expression
Class OgnlExpressionEvaluator

java.lang.Object
  extended by org.mule.module.ognl.expression.OgnlExpressionEvaluator
All Implemented Interfaces:
ExpressionEvaluator, Disposable, NamedObject

public class OgnlExpressionEvaluator
extends java.lang.Object
implements ExpressionEvaluator, Disposable

An expression evaluator that uses OGNL as the expression language


Field Summary
protected  Log logger
          logger used by this class
static java.lang.String NAME
           
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
OgnlExpressionEvaluator()
           
 
Method Summary
 void dispose()
          A lifecycle method where implementor should free up any resources.
 java.lang.Object evaluate(java.lang.String expression, MuleMessage message)
          Extracts a single property from the message
 java.lang.String getName()
          Gets the name of the object
 void setName(java.lang.String name)
          Sets the name of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

logger

protected final transient Log logger
logger used by this class

Constructor Detail

OgnlExpressionEvaluator

public OgnlExpressionEvaluator()
Method Detail

evaluate

public java.lang.Object evaluate(java.lang.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

setName

public void setName(java.lang.String name)
Description copied from interface: NamedObject
Sets the name of the object

Specified by:
setName in interface NamedObject
Parameters:
name - the name of the object

getName

public java.lang.String getName()
Description copied from interface: NamedObject
Gets the name of the object

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

dispose

public void dispose()
Description copied from interface: Disposable
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions.

Specified by:
dispose in interface Disposable


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