spring-framework / org.springframework.context.support / ReloadableResourceBundleMessageSource / setResourceLoader

setResourceLoader

open fun setResourceLoader(@Nullable resourceLoader: ResourceLoader): Unit

Set the ResourceLoader to use for loading bundle properties files.

The default is a DefaultResourceLoader. Will get overridden by the ApplicationContext if running in a context, as it implements the ResourceLoaderAware interface. Can be manually overridden when running outside of an ApplicationContext.

See Also
org.springframework.core.io.DefaultResourceLoaderorg.springframework.context.ResourceLoaderAware