You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Alessandro Accardo <ju...@gmail.com> on 2013/07/12 14:46:36 UTC
OGNL new component
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.
Re: OGNL new component
Posted by Maurizio Cucchiara <mc...@apache.org>.
Ciao Alessandro,
thanks for your interest for OGNL and for letting us know about your component.
Just a couple of question:
Why did you need to copy the whole code of OGNL and just not fork it?
It could be hard to recognize your changes.
Can you point us a test/code example that illustrates how your component works?
Twitter :http://www.twitter.com/m_cucchiara
G+ :https://plus.google.com/107903711540963855921
Linkedin :http://www.linkedin.com/in/mauriziocucchiara
VisualizeMe: http://vizualize.me/maurizio.cucchiara?r=maurizio.cucchiara
Maurizio Cucchiara
On 12 July 2013 14:46, Alessandro Accardo <ju...@gmail.com> wrote:
>
> 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.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org