org.apache.servicemix.expression
Class ConstantExpression

java.lang.Object
  extended by org.apache.servicemix.expression.ConstantExpression
All Implemented Interfaces:
Expression

public class ConstantExpression
extends java.lang.Object
implements Expression

Represents a constant expression

Version:
$Revision: 426415 $

Constructor Summary
ConstantExpression(java.lang.Object value)
           
 
Method Summary
 java.lang.Object evaluate(javax.jbi.messaging.MessageExchange exchange, javax.jbi.messaging.NormalizedMessage message)
          Evaluates the expression on the given exchange and message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantExpression

public ConstantExpression(java.lang.Object value)
Method Detail

evaluate

public java.lang.Object evaluate(javax.jbi.messaging.MessageExchange exchange,
                                 javax.jbi.messaging.NormalizedMessage message)
                          throws javax.jbi.messaging.MessagingException
Description copied from interface: Expression
Evaluates the expression on the given exchange and message.

Specified by:
evaluate in interface Expression
Parameters:
exchange - the message exchange
message - the message, typically an inbound message
Returns:
the value of the expression
Throws:
javax.jbi.messaging.MessagingException


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.