[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Introspector.getBeanInfo(class, int)
From: |
Aaron Luchko |
Subject: |
[cp-patches] Introspector.getBeanInfo(class, int) |
Date: |
Tue, 09 Aug 2005 17:52:15 -0400 |
We don't have Introspector.getBeanInfo(class, int) implemented. I've
been experimenting with it to try and figure out how it works,
unfortunately anything I try it seems to return exactly the same as
Introspector.getBeanInfo(class). I was wondering if someone knew exactly
how it was supposed to work and how I could test it. Otherwise I was
wondering if I should commit something like the following patch.
thanks,
Aaron
Index: Introspector.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/beans/Introspector.java,v
retrieving revision 1.20
diff -u -r1.20 Introspector.java
--- Introspector.java 2 Jul 2005 20:32:37 -0000 1.20
+++ Introspector.java 9 Aug 2005 21:51:46 -0000
@@ -245,11 +245,30 @@
}
/**
+ * FIXME: I haven't actually been able to figure out what the flags
control.
* Get the BeanInfo for class <CODE>beanClass</CODE>,
* first by looking for explicit information, next by
* using standard design patterns to determine
* information about the class. It crawls up the
* inheritance tree until it hits <CODE>topClass</CODE>.
+ *
+ * @param beanClass the Bean class.
+ * @param flags controls the information returned, not currently used
+ * @return the BeanInfo object representing the class.
+ */
+ public static BeanInfo getBeanInfo(Class beanClass, int flags)
+ throws IntrospectionException
+ {
+ // FIXME: We really need to do something with the flags.
+ return getBeanInfo(beanClass);
+ }
+
+ /**
+ * Get the BeanInfo for class <CODE>beanClass</CODE>,
+ * first by looking for explicit information, next by
+ * using standard design patterns to determine
+ * information about the class. It crawls up the
+ * inheritance tree until it hits <CODE>stopClass</CODE>.
*
* @param beanClass the Bean class.
* @param stopClass the class to stop at.
- [cp-patches] Introspector.getBeanInfo(class, int),
Aaron Luchko <=