org.apache.camel.language.juel
Class JuelExpression

java.lang.Object
  extended by org.apache.camel.impl.ExpressionSupport<org.apache.camel.Exchange>
      extended by org.apache.camel.language.juel.JuelExpression
All Implemented Interfaces:
org.apache.camel.Expression<org.apache.camel.Exchange>, org.apache.camel.Predicate<org.apache.camel.Exchange>

public class JuelExpression
extends org.apache.camel.impl.ExpressionSupport<org.apache.camel.Exchange>

Version:
$Revision: $

Constructor Summary
JuelExpression(String expression, Class<?> type)
           
 
Method Summary
protected  String assertionFailureMessage(org.apache.camel.Exchange exchange)
           
protected  javax.el.ELContext createContext()
          Factory method to create the EL context
static JuelExpression el(String expression)
           
 Object evaluate(org.apache.camel.Exchange exchange)
           
 javax.el.ExpressionFactory getExpressionFactory()
           
protected  javax.el.ELContext populateContext(javax.el.ELContext context, org.apache.camel.Exchange exchange)
           
 void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)
           
protected  void setVariable(javax.el.ELContext context, String name, Object value, Class<?> type)
           
 
Methods inherited from class org.apache.camel.impl.ExpressionSupport
assertMatches, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JuelExpression

public JuelExpression(String expression,
                      Class<?> type)
Method Detail

el

public static JuelExpression el(String expression)

evaluate

public Object evaluate(org.apache.camel.Exchange exchange)

getExpressionFactory

public javax.el.ExpressionFactory getExpressionFactory()

setExpressionFactory

public void setExpressionFactory(javax.el.ExpressionFactory expressionFactory)

populateContext

protected javax.el.ELContext populateContext(javax.el.ELContext context,
                                             org.apache.camel.Exchange exchange)

setVariable

protected void setVariable(javax.el.ELContext context,
                           String name,
                           Object value,
                           Class<?> type)

createContext

protected javax.el.ELContext createContext()
Factory method to create the EL context


assertionFailureMessage

protected String assertionFailureMessage(org.apache.camel.Exchange exchange)
Specified by:
assertionFailureMessage in class org.apache.camel.impl.ExpressionSupport<org.apache.camel.Exchange>


Copyright © 2007 Apache Software Foundation. All Rights Reserved.