类 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
    • 方法详细资料

      • 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