ReloadableResourceBundleMessageSource is great to access messages and automagicaly reload bundles.
... but Bundles are properties files and properties are usefull for lot's of other things, like application configuration. I would find great to have the same behaviour and use something like a "ReloadablePropertiesConfiguration" to access application properties (it also may be associated with commons-configuration...)
It may be great to isolate property files handling (reload, caching...) into a more generic and reusable ReloadablePropertiesManager, that may be used by ReloadableResourceBundleMessageSource as a PropertiesHolder source. Converting and caching properties to MessageFormat may stay in ReloadableResourceBundleMessageSource.
nicolas de loof opened SPR-995 and commented
ReloadableResourceBundleMessageSource is great to access messages and automagicaly reload bundles.
... but Bundles are properties files and properties are usefull for lot's of other things, like application configuration. I would find great to have the same behaviour and use something like a "ReloadablePropertiesConfiguration" to access application properties (it also may be associated with commons-configuration...)
It may be great to isolate property files handling (reload, caching...) into a more generic and reusable ReloadablePropertiesManager, that may be used by ReloadableResourceBundleMessageSource as a PropertiesHolder source. Converting and caching properties to MessageFormat may stay in ReloadableResourceBundleMessageSource.
Affects: 1.2.2