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

Allow filtering the properties to be copied

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.8.3
    • 2.0.0
    • Bean / Property Utils
    • None

    Description

      The method PropertyUtilsBean.copyProperties() allows copying all properties from a source bean to a target bean. There are use cases when only a subset of the properties available should be taken into account. It would be nice if there was an overloaded method accepting additional parameters to limit the set of properties that will be copied.

      A pretty generic solution could define a typical filter interface, e.g. PropertyFilter. Then we can provide some default implementations, for instance inclusion or exclusion filters based on property names.

      Attachments

        Activity

          People

            Unassigned Unassigned
            oheger Oliver Heger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: