接口的使用
org.springframework.ui.context.ThemeSource
使用ThemeSource的程序包 程序包 说明 org.springframework.ui.context Contains classes defining the application context subinterface for UI applications.org.springframework.ui.context.support Classes supporting the org.springframework.ui.context package.org.springframework.web.context.support Classes supporting theorg.springframework.web.context
package, such as WebApplicationContext implementations and various utility classes.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.ui.context中ThemeSource的使用
org.springframework.ui.context中ThemeSource的子接口 修饰符和类型 接口 说明 interface
HierarchicalThemeSource
Sub-interface of ThemeSource to be implemented by objects that can resolve theme messages hierarchically.返回ThemeSource的org.springframework.ui.context中的方法 修饰符和类型 方法 说明 ThemeSource
HierarchicalThemeSource. getParentThemeSource()
Return the parent of this ThemeSource, ornull
if none.参数类型为ThemeSource的org.springframework.ui.context中的方法 修饰符和类型 方法 说明 void
HierarchicalThemeSource. setParentThemeSource(ThemeSource parent)
Set the parent that will be used to try to resolve theme messages that this object can't resolve.org.springframework.ui.context.support中ThemeSource的使用
实现ThemeSource的org.springframework.ui.context.support中的类 修饰符和类型 类 说明 class
DelegatingThemeSource
Empty ThemeSource that delegates all calls to the parent ThemeSource.class
ResourceBundleThemeSource
ThemeSource
implementation that looks up an individualResourceBundle
per theme.返回ThemeSource的org.springframework.ui.context.support中的方法 修饰符和类型 方法 说明 ThemeSource
DelegatingThemeSource. getParentThemeSource()
ThemeSource
ResourceBundleThemeSource. getParentThemeSource()
static ThemeSource
UiApplicationContextUtils. initThemeSource(ApplicationContext context)
Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".参数类型为ThemeSource的org.springframework.ui.context.support中的方法 修饰符和类型 方法 说明 void
DelegatingThemeSource. setParentThemeSource(ThemeSource parentThemeSource)
void
ResourceBundleThemeSource. setParentThemeSource(ThemeSource parent)
org.springframework.web.context.support中ThemeSource的使用
实现ThemeSource的org.springframework.web.context.support中的类 修饰符和类型 类 说明 class
AbstractRefreshableWebApplicationContext
AbstractRefreshableApplicationContext
subclass which implements theConfigurableWebApplicationContext
interface for web environments.class
AnnotationConfigWebApplicationContext
WebApplicationContext
implementation which accepts component classes as input — in particular@Configuration
-annotated classes, but also plain@Component
classes and JSR-330 compliant classes usingjavax.inject
annotations.class
GenericWebApplicationContext
Subclass ofGenericApplicationContext
, suitable for web environments.class
GroovyWebApplicationContext
WebApplicationContext
implementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader
.class
StaticWebApplicationContext
StaticWebApplicationContext
implementation for testing.class
XmlWebApplicationContext
WebApplicationContext
implementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader
.org.springframework.web.servlet中ThemeSource的使用
返回ThemeSource的org.springframework.web.servlet中的方法 修饰符和类型 方法 说明 ThemeSource
DispatcherServlet. getThemeSource()
Return this servlet's ThemeSource, if any; else returnnull
.org.springframework.web.servlet.support中ThemeSource的使用
返回ThemeSource的org.springframework.web.servlet.support中的方法 修饰符和类型 方法 说明 static ThemeSource
RequestContextUtils. getThemeSource(HttpServletRequest request)
Return the ThemeSource that has been bound to the request by the DispatcherServlet.