Top Description Fields Constructors Methods
org.springframework.ui.context.support

public abstract Class UiApplicationContextUtils

extends Object
Class Inheritance
Annotations
@Deprecated
since:6.0
Imports
org.apache.commons.logging.Log, .LogFactory, org.springframework.context.ApplicationContext, org.springframework.ui.context.HierarchicalThemeSource, .ThemeSource

Deprecated

since 6.0.

as of 6.0 in favor of using CSS, without direct replacement

Utility class for UI application context implementations. Provides support for a special bean named "themeSource", of type org.springframework.ui.context.ThemeSource.
Authors
Jean-Pierre Pawlak, Juergen Hoeller
Since
17.06.2003

Field Summary

Modifier and TypeField and Description
private static final Log
public static final String
THEME_SOURCE_BEAN_NAME

Name of the ThemeSource bean in the factory.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static ThemeSource

Returns:

the initialized theme source (will never be null)
initThemeSource
(ApplicationContext
current application context
context
)

Deprecated as a consequence of ThemeSource being deprecated.
Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
private static final Log logger
THEME_SOURCE_BEAN_NAMEback to summary
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
org.springframework.ui.context.ThemeSource

Constructor Detail

UiApplicationContextUtilsback to summary
public UiApplicationContextUtils()

Method Detail

initThemeSourceback to summary
public static ThemeSource initThemeSource(ApplicationContext context)

Deprecated

as a consequence of ThemeSource being deprecated. See corresponding docs for further information.

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:ApplicationContext

current application context

Returns:ThemeSource

the initialized theme source (will never be null)

See Also
THEME_SOURCE_BEAN_NAME