Java 类org.springframework.ui.context.support.SimpleTheme 实例源码

项目:spring4-understanding    文件:SimpleWebApplicationContext.java   
@Override
public Theme getTheme(String themeName) {
    if (AbstractThemeResolver.ORIGINAL_DEFAULT_THEME_NAME.equals(themeName)) {
        return new SimpleTheme(AbstractThemeResolver.ORIGINAL_DEFAULT_THEME_NAME, this.messageSource);
    }
    else {
        return null;
    }
}
项目:openmrs-module-legacyui    文件:StaticThemeSource.java   
/**
 * @see org.springframework.ui.context.ThemeSource#getTheme(java.lang.String)
 */
@Override
public Theme getTheme(String ignoredArgument) {
    ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
    messageSource.setBasename(this.themeName);
    return new SimpleTheme(themeName, messageSource);
}
项目:class-guard    文件:SimpleWebApplicationContext.java   
@Override
public Theme getTheme(String themeName) {
    if (AbstractThemeResolver.ORIGINAL_DEFAULT_THEME_NAME.equals(themeName)) {
        return new SimpleTheme(AbstractThemeResolver.ORIGINAL_DEFAULT_THEME_NAME, this.messageSource);
    }
    else {
        return null;
    }
}