Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5017936

RFE: Retrofit JavaBeans beaninfo to the new metadata facilities in 1.5

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • P4
    • None
    • 5.0
    • client-libs
    • x86
    • windows_xp

    Description

      Name: rmT116609 Date: 03/22/2004


      A DESCRIPTION OF THE REQUEST :
      At present, one specifies bean properties by means of a BeanInfo class.

      I'd like to see it made possible to do this with the new metatdata facilities in 1.5. This would involve some metatdata interfaces being created (which should be attached to the class but not loaded at runtime), and java.beans.BeanInfo being updataed to understand these properties.

      Since the metadata stuff only returns strings, icons would be returned as URLs or as resources. So metadata interface @java.beans.FeatureDescriptor (or whatever) would have a pair of methods getIconResource() and getIconURL() which would return null or values suitable for

      getBeanClass().getResource(xxx.getIconResource())

      or

      new URL(xxx.getIconURL())

      respecitvely.

      JUSTIFICATION :
      The point of the new metadata facilities is to provide APIs that provide metadata (including but not limited to JavaBeans) witha unifided method for doing it.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Id like to be able to put the values for

      attributeNames, getDisplayName, getName, getShortDescription, isExpert, isHidden, isPreferred

      etc in the java code
      ACTUAL -
      You have to make a BeanInfo class


      (Incident Review ID: 243858)
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              malenkov Sergey Malenkov (Inactive)
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: