public abstract class

UiApplicationContextUtils

extends Object
java.lang.Object
   ↳ org.springframework.ui.context.support.UiApplicationContextUtils

Class Overview

Utility class for UI application context implementations. Provides support for a special bean named "themeSource", of type ThemeSource.

Summary

Constants
String THEME_SOURCE_BEAN_NAME Name of the ThemeSource bean in the factory.
Public Constructors
UiApplicationContextUtils()
Public Methods
static ThemeSource initThemeSource(ApplicationContext context)
Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String THEME_SOURCE_BEAN_NAME

Name of the ThemeSource bean in the factory. If none is supplied, theme resolution is delegated to the parent.

See Also
Constant Value: "themeSource"

Public Constructors

public UiApplicationContextUtils ()

Public Methods

public static ThemeSource initThemeSource (ApplicationContext context)

Initialize 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)