src/share/classes/java/beans/BeanDescriptor.java

Print this page
rev 10053 : 8044855: Add missing @since tag under java.beans.*
Reviewed-by:


  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 
  30 /**
  31  * A BeanDescriptor provides global information about a "bean",
  32  * including its Java class, its displayName, etc.
  33  * <p>
  34  * This is one of the kinds of descriptor returned by a BeanInfo object,
  35  * which also returns descriptors for properties, method, and events.


  36  */
  37 
  38 public class BeanDescriptor extends FeatureDescriptor {
  39 
  40     private Reference<? extends Class<?>> beanClassRef;
  41     private Reference<? extends Class<?>> customizerClassRef;
  42 
  43     /**
  44      * Create a BeanDescriptor for a bean that doesn't have a customizer.
  45      *
  46      * @param beanClass  The Class object of the Java class that implements
  47      *          the bean.  For example sun.beans.OurButton.class.
  48      */
  49     public BeanDescriptor(Class<?> beanClass) {
  50         this(beanClass, null);
  51     }
  52 
  53     /**
  54      * Create a BeanDescriptor for a bean that has a customizer.
  55      *




  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.beans;
  27 
  28 import java.lang.ref.Reference;
  29 
  30 /**
  31  * A BeanDescriptor provides global information about a "bean",
  32  * including its Java class, its displayName, etc.
  33  * <p>
  34  * This is one of the kinds of descriptor returned by a BeanInfo object,
  35  * which also returns descriptors for properties, method, and events.
  36  *
  37  * @since 1.1
  38  */
  39 
  40 public class BeanDescriptor extends FeatureDescriptor {
  41 
  42     private Reference<? extends Class<?>> beanClassRef;
  43     private Reference<? extends Class<?>> customizerClassRef;
  44 
  45     /**
  46      * Create a BeanDescriptor for a bean that doesn't have a customizer.
  47      *
  48      * @param beanClass  The Class object of the Java class that implements
  49      *          the bean.  For example sun.beans.OurButton.class.
  50      */
  51     public BeanDescriptor(Class<?> beanClass) {
  52         this(beanClass, null);
  53     }
  54 
  55     /**
  56      * Create a BeanDescriptor for a bean that has a customizer.
  57      *