|
From: Keith D. <kd...@cs...> - 2004-03-08 02:26:49
|
Should the BeanWrapperImpl(class) usage call class.newInstance()? I'd = like to be able to introspect the PropertyDescriptors of a bean using = BeanWrapper without having to use the Javabeans API directly. Currently = this call prevents me from doing so for beans that don't have no-arg = constructors, which is the case for a lot of our beans these days. I noticed this when working with the attributes validator Seth and I = have been putting together -- Seth was using the reflection API directly = to find validateable properties in getter source-level attributes, and I = updated it to use the BeanWrapper API to simplfy the work we have to do, = when I encountered this issue. Keith |