Re: [jexl] custom expressions / registering functions
Le 25-mai-10 à 06:40, Adrian Herscu a écrit : On 24/05/2010 22:52, Paul Libbrecht wrote: Jexl containers allow you to add objects. Can you, please, send a link for more info? At least jelly does. Jelly is at... commons-jelly: http://commons.apache.org/jelly/ some other projects use jexl, especially newer version of it, including scxml. paul smime.p7s Description: S/MIME cryptographic signature
Re: [jexl] custom expressions / registering functions
Adrian Herscu wrote: Hi all, I am looking for an expression language to using in a testing framework that I am designing. The requirement is that the users of the framework are allowed to define their own functions. I could not find it possible to add a function to a JEXL context. Is there any other mechanism? Why don't you simply use the JavaScript engine (JSR 223)? It comes out of the box with Java 6 (including Rhino) and for earlier JDKs you can use Apache BSF (http://jakarta.apache.org/bsf/) that implements also JSR 223 and provides therefore a smooth upgrade path. With the embedded JavaScript of Rhino you can access easily also all Java stuff. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org