On Tue, 2005-08-09 at 17:34 -0600, Tom Tromey wrote: > >>>>> "Aaron" == Aaron Luchko <[EMAIL PROTECTED]> writes: > > Aaron> We don't have Introspector.getBeanInfo(class, int) implemented. I've > Aaron> been experimenting with it to try and figure out how it works, > Aaron> unfortunately anything I try it seems to return exactly the same as > Aaron> Introspector.getBeanInfo(class). I was wondering if someone knew > exactly > Aaron> how it was supposed to work and how I could test it. > > There is some info in the javadoc from Sun. > > http://java.sun.com/j2se/1.4.2/docs/api/java/beans/Introspector.html#getBeanInfo(java.lang.Class,%20int)
I've been looking at that but have still been unsuccessful in getting (class, int) to act differently than (class). "Introspect on a Java bean and learn about all its properties, exposed methods, and events, subject to some control flags. " ok "beanClass - The bean class to be analyzed. flags - Flags to control the introspection. If flags == USE_ALL_BEANINFO then we use all of the BeanInfo classes we can discover. If flags == IGNORE_IMMEDIATE_BEANINFO then we ignore any BeanInfo associated with the specified beanClass. If flags == IGNORE_ALL_BEANINFO then we ignore all BeanInfo associated with the specified beanClass or any of its parent classes." My understanding from that is USE_ALL_BEANINFO is equivalent to just getBeanInfo(class). IGNORE_IMMEDIATE_BEANINFO would I guess be BeanInfo on all the superclasses but not the class itself. IGNORE_ALL_BEANINFO... BeanInfo with nothing??? Either way whatever combination of beans and flags I try I'm getting exactly the same results and I can't tell what, if anything, these flags are doing. Aaron _______________________________________________ Classpath-patches mailing list [email protected] http://lists.gnu.org/mailman/listinfo/classpath-patches
