(d + e is returned) It would be good to extend this to were you could declare a reference to a serialized object in the xml. Is there something i'm missing and ognl can support return a none primative value something like 'ognl:new Object()'?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ognl: new java.lang.Date()
ognl: new java.lang.String('Hello')
etc.
Ognl is more or less a turing complete language, except for that fact that it doesnt support closures it would also be a full-fledged lambda calculus (like scheme).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have been looking over the mock object code. Right now you can only supply an ognl expression as a return value.
<addNums args="Double d, Double e">ognl:d + e</addNums>
(d + e is returned) It would be good to extend this to were you could declare a reference to a serialized object in the xml. Is there something i'm missing and ognl can support return a none primative value something like 'ognl:new Object()'?
Yea ognl can do the following:
ognl: new java.lang.Date()
ognl: new java.lang.String('Hello')
etc.
Ognl is more or less a turing complete language, except for that fact that it doesnt support closures it would also be a full-fledged lambda calculus (like scheme).