Apache Commons JEXL 2.1 發布
Java Expression Language (JEXL) 是一個表達式語言引擎,可以用來在應用或者框架中使用。JEXL 受Velocity 和 JSP 標簽庫 1.1 (JSTL) 的影響而產生的。需要注意的是, JEXL 并不時 JSTL 中的表達式語言的實現。
Commons JEXL 2.1 發布了,該版本和 2.0.1 是二進制兼容的,但源碼不兼容,因為新增了兩個接口:
◆ org.apache.commons.jexl2.Script
◆ org.apache.commons.jexl2.JexlInfo
JEXL 2.1 改進內容:
==================
1. A more thorough arithmetic (JexlArithmetic) that allows fine control over decimals (scale and precision), a new syntax for numeric literals (OGNL inspired Big and Huge notations) and a better type handling keeping the most appropriate representation in casual operations.
2. The introduction of script variables and parameters that reduce context dependencies and methods; this allows to perform checks after script creation (light static checking hints). Plus the ability to call script from scripts.
3. A sandoxing feature to restrict and rename what JEXL can access from the environment allowing tighter control over security.
4. Extensions to UnifiedJEXL that allow the creation of templates.
完整記錄請看:
http://commons.apache.org/jexl/changes-report.html#a2.1
原文鏈接:http://www.open-open.com/news/view/121c31f
【編輯推薦】
- Apache UIMA Java SDK 2.4.0 發布 附下載
- Play 1.2.4 發布 支持Java7
- Argparse4j 0.2 發布 Java命令行解析庫
- Sanaware Java Docking 1.5.0 發布 附下載
- JavaMelody 1.33.0 發布 Java應用監控