BeanShell
Camel supports BeanShell among other Scripting Languages to allow an Expression or Predicate to be used in the DSL or Xml Configuration.
To use a BeanShell expression use the following Java code
import static org.apache.camel.builder.script.ScriptBuilder.*; ... ... beanShell("someBeanShellExpression") ...
For example you could use the beanShell function to create an Predicate in a Message Filter or as an Expression for a Recipient List