org.apache.camel.language.spel
Class SpelExpression

java.lang.Object
  extended by org.apache.camel.support.ExpressionSupport
      extended by org.apache.camel.impl.ExpressionSupport
          extended by org.apache.camel.language.spel.SpelExpression
All Implemented Interfaces:
org.apache.camel.Expression, org.apache.camel.Predicate

public class SpelExpression
extends org.apache.camel.impl.ExpressionSupport

Class responsible for evaluating Spring Expression Language in the context of Camel.


Constructor Summary
SpelExpression(String expressionString, Class<?> type)
           
 
Method Summary
protected  String assertionFailureMessage(org.apache.camel.Exchange exchange)
           
<T> T
evaluate(org.apache.camel.Exchange exchange, Class<T> tClass)
           
 Class<?> getType()
           
static SpelExpression spel(String expression)
           
 String toString()
           
 
Methods inherited from class org.apache.camel.support.ExpressionSupport
assertMatches, evaluate, matches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpelExpression

public SpelExpression(String expressionString,
                      Class<?> type)
Method Detail

spel

public static SpelExpression spel(String expression)

evaluate

public <T> T evaluate(org.apache.camel.Exchange exchange,
                      Class<T> tClass)

getType

public Class<?> getType()

assertionFailureMessage

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

toString

public String toString()
Overrides:
toString in class Object


Apache Camel