@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; } }
/** * @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); }