Hi all ognl devs,
I'm writing to you because I developed an extra component for OGNL for
which I wanted you to know about.

Unfortunately I wasn't able to take this code off of ognl library so I had
to include OGNL in my code and modify some classes (mainly a non-intrusive
change to OgnlRuntime.java).

It consists of a dynamic type converter, which lets a coder to use the
Ognl.setValue method passing a string representation of the value he or she
wants to pass.
With this piece of code a user is allowed to write a setValue expression
like this: "root.ahardtosetvalue=iamhardandyouknowit".

I developed this component because I needed a way to let the users of my
program interact with the objects they create with a dynamic set which
currently lets a user to write set expressions for almost any kind of type,
if it is implemented as an adapter.

You can find this code licensed as GPL (if you need an Apache license I'll
be glad to change the license of that part of my code), and hosted at
https://github.com/kLeZ/RG-RPG, in the package
"it.d4nguard.rgrpg.util.dynacast*".

I hope you will find it useful as I did when I developed it.
Thank you guys for your time.

Alessandro.

Reply via email to