interface ThemeSource
Interface to be implemented by objects that can resolve Theme. This enables parameterization and internationalization of messages for a given 'theme'.
Author
Jean-Pierre Pawlak
Author
Juergen Hoeller
See Also
Theme
abstract fun getTheme(themeName: String): Theme
Return the Theme instance for the given theme name. The returned Theme will resolve theme-specific messages, codes, file paths, etc (e.g. CSS and image files in a web environment). |
open class StaticWebApplicationContext : StaticApplicationContext, ConfigurableWebApplicationContext, ThemeSource
Static org.springframework.web.context.WebApplicationContext implementation for testing. Not intended for use in production applications. Implements the org.springframework.web.context.ConfigurableWebApplicationContext interface to allow for direct replacement of an XmlWebApplicationContext, despite not actually supporting external configuration files. Interprets resource paths as servlet context resources, i.e. as paths beneath the web application root. Absolute paths, e.g. for files outside the web app root, can be accessed via "file:" URLs, as implemented by org.springframework.core.io.DefaultResourceLoader. In addition to the special beans detected by org.springframework.context.support.AbstractApplicationContext, this class detects a bean of type org.springframework.ui.context.ThemeSource in the context, under the special bean name "themeSource". |