You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by John Yu <jo...@scioworks.com> on 2001/08/08 07:30:23 UTC

Re: Introspection used in Struts (Was: Bean convention vs. Struts convention)

At 09:38 PM 8/7/2001 -0700, you wrote:

>Struts already does it (inside the PropertyUtils class).  The first time
>it encounters a particular bean class, Struts executes:
>
>   BeanInfo beanInfo = Introspector.getBeanInfo(bean.getClass());
>   PropertyDescriptor descriptors[] =
>     beanInfo.getPropertyDescriptors();
>
>and caches the descriptors[] array.  Each PropertyDescriptor already has a
>direct reference to the appropriate getter and setter Method objects, so
>they are in effect being cached as well.


Struts!!! Struts!!! Struts!!! :-)

Thanks, Craig.

-- 
John Yu                       Scioworks Technologies
e: john@scioworks.com         w: +(65) 873 5989
w: http://www.scioworks.com   m: +(65) 9782 9610