org.springframework.ui.context.support
Class UiApplicationContextUtils

java.lang.Object
  extended byorg.springframework.ui.context.support.UiApplicationContextUtils

public abstract class UiApplicationContextUtils
extends java.lang.Object

Utilities common to all UI application context implementations.

Since:
17.06.2003
Author:
Jean-Pierre Pawlak, Juergen Hoeller

Field Summary
static java.lang.String THEME_SOURCE_BEAN_NAME
          Name of the ThemeSource bean in the factory.
 
Constructor Summary
UiApplicationContextUtils()
           
 
Method Summary
static ThemeSource initThemeSource(ApplicationContext context)
          Initialize the ThemeSource for the given application context, auto-detecting a bean with the name "themeSource".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THEME_SOURCE_BEAN_NAME

public static final java.lang.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:
ThemeSource, Constant Field Values
Constructor Detail

UiApplicationContextUtils

public UiApplicationContextUtils()
Method Detail

initThemeSource

public static ThemeSource initThemeSource(ApplicationContext context)
Initialize the ThemeSource for the given application context, auto-detecting 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:
THEME_SOURCE_BEAN_NAME


Copyright (C) 2003-2004 The Spring Framework Project.