spring-framework / org.springframework.ui.context.support / ResourceBundleThemeSource / getTheme

getTheme

@Nullable open fun getTheme(themeName: String): Theme

Overrides ThemeSource.getTheme

This implementation returns a SimpleTheme instance, holding a ResourceBundle-based MessageSource whose basename corresponds to the given theme name (prefixed by the configured "basenamePrefix").

SimpleTheme instances are cached per theme name. Use a reloadable MessageSource if themes should reflect changes to the underlying files.

See Also
#setBasenamePrefix#createMessageSource