spring-framework / org.springframework.ui.context.support / UiApplicationContextUtils

UiApplicationContextUtils

abstract class UiApplicationContextUtils

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

Author
Jean-Pierre Pawlak

Author
Juergen Hoeller

Since
17.06.2003

Constructors

<init>

UiApplicationContextUtils()

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

Properties

THEME_SOURCE_BEAN_NAME

static val THEME_SOURCE_BEAN_NAME: String

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

Functions

initThemeSource

open static fun initThemeSource(context: ApplicationContext): ThemeSource

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.