Apache Commons JEXL 2.1 發(fā)布
Java Expression Language (JEXL) 是一個(gè)表達(dá)式語言引擎,可以用來在應(yīng)用或者框架中使用。JEXL 受Velocity 和 JSP 標(biāo)簽庫 1.1 (JSTL) 的影響而產(chǎn)生的。需要注意的是, JEXL 并不時(shí) JSTL 中的表達(dá)式語言的實(shí)現(xiàn)。
Commons JEXL 2.1 發(fā)布了,該版本和 2.0.1 是二進(jìn)制兼容的,但源碼不兼容,因?yàn)樾略隽藘蓚€(gè)接口:
◆ org.apache.commons.jexl2.Script
◆ org.apache.commons.jexl2.JexlInfo
JEXL 2.1 改進(jìn)內(nèi)容:
==================
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.
完整記錄請(qǐng)看:
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 發(fā)布 附下載
- Play 1.2.4 發(fā)布 支持Java7
- Argparse4j 0.2 發(fā)布 Java命令行解析庫
- Sanaware Java Docking 1.5.0 發(fā)布 附下載
- JavaMelody 1.33.0 發(fā)布 Java應(yīng)用監(jiān)控