org.springframework.ui.context.support

## 类 UiApplicationContextUtils

- java.lang.Object
- - org.springframework.ui.context.support.UiApplicationContextUtils

-     public abstract class UiApplicationContextUtils
      extends Object

  Utility class for UI application context implementations. Provides support for a special bean named "themeSource", of type `ThemeSource`.
  从以下版本开始:
    17.06.2003
  作者:
    Jean-Pierre Pawlak, Juergen Hoeller

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static String` | `THEME_SOURCE_BEAN_NAME` Name of the ThemeSource bean in the factory.

  - ### 构造器概要

    构造器
    构造器和说明
    `UiApplicationContextUtils()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static ThemeSource` | `initThemeSource(ApplicationContext context)` Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### THEME_SOURCE_BEAN_NAME

          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.
      另请参阅:
        `ThemeSource`, 常量字段值

  - ### 构造器详细资料

    - #### UiApplicationContextUtils

          public UiApplicationContextUtils()

  - ### 方法详细资料

    - #### initThemeSource

          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.
      参数:
        `context` - current application context
      返回:
        the initialized theme source (will never be `null`)
      另请参阅:
        `THEME_SOURCE_BEAN_NAME`