« Return to Thread: Configuring RIFE in Spring

Re: Re: Configuring RIFE in Spring

by Geert Bevin :: Rate this Message:

Reply to Author | View in Thread

Hi David,

I briefly read over the code that you posted there.

While it should definitely work, it misses an important part of the  
JDK Introspector class. Th is class caches all the introspections for  
subsequent executions. This makes bean-based reflection very fast.  
You version however scans all the methods in the bean for every  
property obtained, every time. I can see this as being a major  
performance hog.

Best regards,

Geert

On 08 Apr 2006, at 23:08, David Medinets wrote:

> I have refined my change to just a single file as detailed in
>
> http://opensource.atlassian.com/projects/spring/browse/SPR-1871
>
> I don't know which page on the RIFE wiki should be updated to reflect
> this issue.
>
> -david
>
> On 4/8/06, Geert Bevin <gbevin@...> wrote:
>> Hi David,
>>
>> it might be a good idea to add this to the wiki and attach the files.
>> If you want, I can open up a Subversion repository for you to put the
>> source code in.
>>
>> Best regards,
>>
>> Geert
>>
>> On 08 Apr 2006, at 06:07, David Medinets wrote:
>>
>>> I like the Fluent API style of setting values (ie, setters  
>>> returning a
>>> value to allow chaining). And I like Spring. Putting the two  
>>> together
>>> seems like a good idea.
>>>
>>> To this end, I now have a customized version of
>>> org.springframework.beans.BeanWrapperImpl.java and
>>> java.beans.PropertyDescriptor.java which allows me to use the
>>> following setter and *still* configure the bean using Spring.
>>>
>>>     public Person setName(String _name) {
>>>         this.name = _name;
>>>         return this;
>>>     }
>>>
>>> If anyone is interested in this work, I'd be happy to share the  
>>> files.
>>> And if a few people are serious about usage, I'd see if I could  
>>> avoid
>>> changing PropertyDescriptor.java since it is an official part of  
>>> Java
>>> (ie, part of rt.jar).
>>>
>>> -david
>>> _______________________________________________
>>> Rife-devel mailing list
>>> Rife-devel@...
>>> http://lists.uwyn.com/mailman/listinfo/rife-devel
>>>
>>
>> --
>> Geert Bevin             Uwyn bvba               GTalk:  
>> gbevin@...
>> "Use what you need"     Avenue de Scailmont 34  Skype: gbevin
>> http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
>> gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302  
>> 599
>>
>> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
>> Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
>>
>>
>> _______________________________________________
>> Rife-devel mailing list
>> Rife-devel@...
>> http://lists.uwyn.com/mailman/listinfo/rife-devel
>>
> _______________________________________________
> Rife-devel mailing list
> Rife-devel@...
> http://lists.uwyn.com/mailman/listinfo/rife-devel
>

--
Geert Bevin             Uwyn bvba               GTalk: gbevin@...
"Use what you need"     Avenue de Scailmont 34  Skype: gbevin
http://www.uwyn.com     7170 Manage, Belgium      AIM: geertbevin
gbevin at uwyn dot com  Tel: +32 64 84 80 03   Mobile: +32 477 302 599

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-devel mailing list
Rife-devel@...
http://lists.uwyn.com/mailman/listinfo/rife-devel

 « Return to Thread: Configuring RIFE in Spring

 
 
 
Google
rifers.org web