Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-554

Make BeanHelper an instantiable class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9
    • 2.0
    • None
    • None

    Description

      Currently, BeanHelper is a static utility class. It has some state (e.g. the default BeanFactory) which is therefore (more or less) globally shared. As mentioned in CONFIGURATION-486, this approach is thread-hostile.

      The topic was discussed on the ML (http://markmail.org/thread/abgze5qj34sjcflp) with the conclusion to make BeanHelper a regular bean class. Thus multiple instances can be created with their own specific configuration. It is still possible to have a shared default instance, e.g. by defining a constant field.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: