Apache Commons JEXL 2.1 發布

openkk 12年前發布 | 15K 次閱讀 Java

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

 

 本文由用戶 openkk 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!