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

Support customization of introspection mechanism

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.9.0
    • Component/s: Bean / Property Utils
    • Labels:
      None

      Description

      So far BeanUtils can cope with properties conforming to the Java Beans specification. In some situations it makes sense to relax this requirement and allow the detection of other forms of get and set methods as well.

      For instance, fluent APIs have become popular. Here you have a set method which does not return void and thus violates the Java Beans specification. Objects using such an API cannot be dealt with by BeanUtils currently.

      For reasons of backwards compatibility the current behavior should remain the default. But it would be cool if there was an option to set a custom introspection policy. The policy would be invoked during property discovery and can decide which properties to include or not.

        Attachments

        1. beanutils-425.patch
          40 kB
          Oliver Heger

          Issue Links

            Activity

              People

              • Assignee:
                oheger Oliver Heger
                Reporter:
                oheger Oliver Heger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: