Uploaded image for project: 'Commons BeanUtils'
  1. Commons BeanUtils
  2. BEANUTILS-235

[beanutils] Need getPropertyType(Class theClass, String propName)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 1.5
    • 1.9.5
    • Bean / Property Utils
    • None
    • Operating System: other
      Platform: Other

    • 13743

    Description

      I've developed a small bean based TableModel, that I use to
      display list of beans in JTables. It works nicely as long
      as I don't need to display a nested property in the columns,
      thats why: the getColumnClass method passes only a columnIndex
      information and wants the Class of that column. If I use the
      getPropertyDescriptors I would need a lot of extra code to understand
      that a property is a nested one, load the correspondend class, and
      so on (and I think that this code is the job of BeanUtils), if I
      create a new istance of the class with Class.newIstance the dependent
      object are set to null and getPropertyType fails...
      So I think that it would be nice to complete the functionality of
      the PropertyUtils class with a getPropertyType(Class theClass, String propName)
      with the ability to handle also nested properties...

      Attachments

        Activity

          People

            Unassigned Unassigned
            aaime@libero.it Andrea Aime
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: