|
From: Rob H. <ro...@ca...> - 2004-11-06 15:38:59
|
I like the idea of having am <expr> tag for something like <expr
type="ognl">. In the code we could have something like:
public interface ExpressionEvaluator {
String[] getDependencies(String expr);
Object evaluate(String expr);
}
Then we could have multiple implementations for the ExpressionEvaluator
interface for OGNL, Groovy etc.
Rob
Rod Johnson writes:
> <script lang="ognl"> perhaps
>
> I think it would be good for the mechanism to be extensible.
>
> Guillaume Poirier wrote:
>>> I am somewhat more attracted to the idea of using a prefix on the value
>>> inside the <value> tag.
>>
>>
>> While I admit that it would be unlikely to cause problem, using a prefix
>> in a value tag is not 100% backward compatible. Someone could be using
>> such prefix currently for a String that should be analysed by once
>> injected, rather than by Spring. And I personally find an <ognl> tag
>> more intuitive for the user. It's also somewhat easier to implement, not
>> that it really matters much I guess.
>>
>>> My other concern is with the speed of OGNL.
>>
>> Adding OGNL support doesn't prevent from adding supports for other
>> expression languages. :-)
>>
>> Guillaume
>>
>> ----- Original Message ----- From: "Colin Sampaleanu" <col...@ex...>
>> To: <spr...@li...>
>> Sent: Friday, November 05, 2004 4:46 PM
>> Subject: Re: [Springframework-developer] OGNL
>>
>>
>>> Rob,
>>>
>>> No Spring committer has done any work that I know of. However, if you
>>> look at the thread with the subject "PropertyPathFactoryBean", on Oct.
>>> 6th Guillaume Poirier posted some OGNL patches. You might want to read
>>> his email, and take a look at my reply too. Using a new element (<ognl>
>>> was Guillaume's suggestion) would work in a completely backwards
>>> compatible fashion. I am somewhat more attracted to the idea of using a
>>> prefix on the value inside the <value> tag. My other concern is with the
>>> speed of OGNL. OGNL is quite nice, it's heavily used in Tapestry and I
>>> found it a lot better than say the JSTL's expression language. However,
>>> v2.x anyways, is not a speed demon. I'd like to also compare it to
>>> something like Janino:
>>> http://www.janino.net/
>>> in terms of best fit for Spring...
>>>
>>> Colin
>>>
>>>
>>> Rob Harrop wrote:
>>>
>>>> All,
>>>>
>>>> Has anyone started work on the OGNL support yet. I have no plans for
>>>> the weekend and I need to do something other than JMX :)
>>>>
>>>> Rob
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by:
>>> Sybase ASE Linux Express Edition - download now for FREE
>>> LinuxWorld Reader's Choice Award Winner for best database on Linux.
>>> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
>>> _______________________________________________
>>> Springframework-developer mailing list
>>> Spr...@li...
>>> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by:
>> Sybase ASE Linux Express Edition - download now for FREE
>> LinuxWorld Reader's Choice Award Winner for best database on Linux.
>> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
>> _______________________________________________
>> Springframework-developer mailing list
>> Spr...@li...
>> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>>
>
> --
>
> ____________________________________________________
> Rod Johnson
> Interface21 - Spring Services from the Source
> http://www.springframework.com
>
> Founder, Spring Framework:
> http://www.springframework.org
>
> Author, "Expert One-on-One J2EE Development Without EJB"
> (May 2004, with Juergen Hoeller).
> http://www.amazon.com/exec/obidos/ASIN/0764558315/
>
> Author, "Expert One-on-One J2EE Design and Development"
> (October 2002).
> http://www.amazon.com/exec/obidos/tg/detail/-/0764543857/
>
>
> ____________________________________________________
> Interface21 Limited
> Registered Office Summit House, 2-2a Highfield Road, Dartford, Kent DA1
> 2JY
> Registered in England and Wales No. 5187766
> ____________________________________________________
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|