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

Allow stopClass for PropertyUtilsBean

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.9.3
    • None
    • Bean / Property Utils
    • None

    Description

      By default, DefaultBeanIntrospector is used as introspector. Turns out, I need to set a stopClass during introspection. Instead of removing DefaultBeanIntrospector instance and then add a new one. I would like to set my very own introspectors in ctor. I can see from the latest version that PropertyUtilsBean#resetBeanIntrospectors exclude by default class property using SuppressPropertiesBeanIntrospector, I have two suggestions, either:

      • DefaultBeanIntrospector uses Object as a stop class
      • Define a StopClassBeanIntrospector allowing to define a stopClass (or add a new method getStopClass into IntrospectionContext and by default returns Object.class, no breaking change)
      • Or having both?

      WDYT?

      Attachments

        Activity

          People

            Unassigned Unassigned
            Rapster Sébastien Lepage
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: