Example usage for org.springframework.ui.context.support UiApplicationContextUtils initThemeSource

List of usage examples for org.springframework.ui.context.support UiApplicationContextUtils initThemeSource

Introduction

In this page you can find the example usage for org.springframework.ui.context.support UiApplicationContextUtils initThemeSource.

Prototype

public static ThemeSource initThemeSource(ApplicationContext context) 

Source Link

Document

Initialize the ThemeSource for the given application context, autodetecting a bean with the name "themeSource".

Usage

From source file:org.codehaus.griffon.runtime.spring.GriffonApplicationContext.java

/**
 * Initialize the theme capability./*from   w w  w . j a  v a 2s.c  o  m*/
 */
protected void onRefresh() {
    this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}

From source file:fi.eis.applications.osgi.support.OsgiBundleXmlWebApplicationContext.java

/**
 * {@inheritDoc}/* w w w  .j a  v  a 2s.co  m*/
 * 
 * Initializes the theme capability.
 */
protected void onRefresh() {
    super.onRefresh();
    this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}

From source file:com.productone.spring.ServerOsgiBundleXmlWebApplicationContext.java

/**
 * Initialize the theme capability./* w w  w. java2  s.c o m*/
 */
@Override
protected void onRefresh() {
    this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}