- Mastering Apache Camel
- Jean-Baptiste Onofré
- 132字
- 2021-07-16 13:50:20
Predicates and expressions
As we will see later, most of the EIP need a rule definition to apply a routing logic to a message. The rule is described using an expression.
It means that we have to define expressions or predicates in the Enterprise Integration Patterns. An expression returns any kind of value, whereas a predicate returns true or false only.
Camel supports a lot of different languages to declare expressions or predicates. It doesn't force you to use one, it allows you to use the most appropriate one.
For instance, Camel supports xpath, mvel, ognl, python, ruby, PHP, JavaScript, SpEL (Spring Expression Language), Groovy, and so on as expression languages. It also provides native Camel prebuilt functions and languages that are easy to use such as header, constant, or simple languages.
- C++程序設計(第3版)
- GraphQL學習指南
- Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API
- 軟件架構:Python語言實現
- PhpStorm Cookbook
- Instant Lucene.NET
- Django實戰:Python Web典型模塊與項目開發
- R Data Science Essentials
- MyBatis 3源碼深度解析
- ABAQUS6.14中文版有限元分析與實例詳解
- NGUI for Unity
- 3D Printing Designs:Octopus Pencil Holder
- JBoss AS 7 Development
- FORTRAN程序設計權威指南
- Java EE企業級應用開發教程:Spring+Spring MVC+MyBatis(第2版)