Class UiApplicationContextUtils
java.lang.Object
org.springframework.ui.context.support.UiApplicationContextUtils
Utility class for UI application context implementations.
 Provides support for a special bean named "themeSource",
 of type 
ThemeSource.- Since:
- 17.06.2003
- Author:
- Jean-Pierre Pawlak, Juergen Hoeller
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringName of the ThemeSource bean in the factory.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ThemeSourceinitThemeSource(ApplicationContext context) Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".
- 
Field Details- 
THEME_SOURCE_BEAN_NAMEName of the ThemeSource bean in the factory. If none is supplied, theme resolution is delegated to the parent.- See Also:
 
 
- 
- 
Constructor Details- 
UiApplicationContextUtilspublic UiApplicationContextUtils()
 
- 
- 
Method Details- 
initThemeSourceInitialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource". If no such bean is found, a default (empty) ThemeSource will be used.- Parameters:
- context- current application context
- Returns:
- the initialized theme source (will never be null)
- See Also:
 
 
-