Class MultipleMessageSource

All Implemented Interfaces:
Aware, HierarchicalMessageSource, MessageSource, ResourceLoaderAware

public class MultipleMessageSource extends ReloadableResourceBundleMessageSource
This can be used in lieu of the default Message Source. It provides an ability to modularize messages.properties resource bundle.
By default, the spring message source does not load multiple messages.properties in multiple jars. It picks up the first file it could find in the class path instead of looking for multiple messages.properties files in the class path (presumably in multiple jar files) But this behaviour is desired to provide modularization. This uses the PathMatchingResourcePatternResolver to achieve this.