I can’t figure out a way of getting ReloadableResourceBundleMessageSource reloadable abilities and having access to Properties / all messages at once by locale. ReloadableResourceBundleMessageSource API doesn’t provide access to anything but individual messages by code and lang… ReloadableResourceBundleMessageSource can’t be even extended to access Properties because of member visibility.
Any idea how to have reloadable properties and access them all at once ?
I just coded this, hope it works but you will need to optimize stuff, I suppose the method can be static or if you need it to become a bean then obtain basename and locale from the base class.
UPDATE: I found a better way to get all properties from the basenames specified:
This will take the basenames from the base class.