Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9
-
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
- relates to
-
CONFIGURATION-486 BeanHelper.setDefaultBeanFactory() is thread-hostile and not thread-safe
- Closed