Expressions and Predicates can then be used to create the various Enterprise Integration Patterns in the DSL or Xml Configuration like the Recipient List.
To support dynamic rules Camel supports pluggable Expression strategies using a variety of different Languages.
The API for a Camel Expression is defined in the
org.apache.camel.Expression interface as shown:
The API for a Camel Predicate is defined in the
org.apache.camel.Predicate interface as shown:
The following languages are supported out of the box
- Bean Language for using Java for expressions
- the unified EL from JSP and JSF
- Ref Language
- ExchangeProperty / Property
- Scripting Languages such as
- Spring Expression Language
Most of these languages is also supported used as Annotation Based Expression Language.
Using Expressions in your IDETo use different expression and predicates in your IDE you need to perform a static import of the builder class for the language(s) you wish to use.
Builder class to import