References Deprecated
ThemeSource is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
org.springframework.web.context.WebApplicationContext
implementation for testing. Not intended for use in production applications.
Implements the org.
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..
In addition to the special beans detected by
org.,
this class detects a bean of type org.
in the context, under the special bean name "themeSource".
Theme support is deprecated as of 6.0 with no direct replacement.
org.springframework.ui.context.ThemeSource
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private ServletConfig | |
| private ServletContext | |
| private ThemeSource | themeSource
References Deprecated
ThemeSource is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Access | Constructor and Description |
|---|---|
| public |
| namespace | back to summary |
|---|---|
| private String namespace
| |
| servletConfig | back to summary |
|---|---|
| private ServletConfig servletConfig
| |
| servletContext | back to summary |
|---|---|
| private ServletContext servletContext
| |
| themeSource | back to summary |
|---|---|
| private ThemeSource themeSource
References Deprecated
See corresponding docs for further information. | |
| StaticWebApplicationContext | back to summary |
|---|---|
| public StaticWebApplicationContext() | |
| createEnvironment | back to summary |
|---|---|
| protected ConfigurableEnvironment createEnvironment() Overrides org. Create and return a new
| |
| getConfigLocations | back to summary |
|---|---|
| public String[] getConfigLocations() Implements org. Doc from org. Return the config locations for this web application context,
or
| |
| getNamespace | back to summary |
|---|---|
| public String getNamespace() Implements org. Doc from org. Return the namespace for this web application context, if any. | |
| getResourceByPath | back to summary |
|---|---|
| protected Resource getResourceByPath(String path) Overrides org. This implementation supports file paths beneath the root of the ServletContext.
| |
| getResourcePatternResolver | back to summary |
|---|---|
| protected ResourcePatternResolver getResourcePatternResolver() Overrides org. This implementation supports pattern matching in unexpanded WARs too.
| |
| getServletConfig | back to summary |
|---|---|
| public ServletConfig getServletConfig() Implements org. Doc from org. Return the ServletConfig for this web application context, if any. | |
| getServletContext | back to summary |
|---|---|
| public ServletContext getServletContext() Implements org. Doc from org. Return the standard Servlet API ServletContext for this application. | |
| getTheme | back to summary |
|---|---|
| public Theme getTheme(String themeName) Implements org. Doc from org. Deprecated
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).
| |
| initPropertySources | back to summary |
|---|---|
| protected void initPropertySources() Overrides org. Doc from org. Replace any stub property sources with actual instances.
| |
| onRefresh | back to summary |
|---|---|
| protected void onRefresh() Overrides org. Initialize the theme capability.
| |
| postProcessBeanFactory | back to summary |
|---|---|
| protected void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) Overrides org. Register request/session scopes, a
| |
| setConfigLocation | back to summary |
|---|---|
| public void setConfigLocation(String configLocation) Implements org. The
| |
| setConfigLocations | back to summary |
|---|---|
| public void setConfigLocations(String... configLocations) Implements org. The
| |
| setNamespace | back to summary |
|---|---|
| public void setNamespace(String namespace) Implements org. Doc from org. Set the namespace for this web application context, to be used for building a default context config location. The root web application context does not have a namespace.
| |
| setServletConfig | back to summary |
|---|---|
| public void setServletConfig(ServletConfig servletConfig) Implements org. Doc from org. Set the ServletConfig for this web application context. Only called for a WebApplicationContext that belongs to a specific Servlet.
| |
| setServletContext | back to summary |
|---|---|
| public void setServletContext(ServletContext servletContext) Implements org. Set the ServletContext that this WebApplicationContext runs in.
| |