org.springframework.ui.context.support.UiApplicationContextUtils Java Examples

The following examples show how to use org.springframework.ui.context.support.UiApplicationContextUtils. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleWebApplicationContext.java    From spring-analysis-note with MIT License 6 votes vote down vote up
@Override
public void refresh() throws BeansException {
	registerSingleton("/locale.do", LocaleChecker.class);

	addMessage("test", Locale.ENGLISH, "test message");
	addMessage("test", Locale.CANADA, "Canadian & test message");
	addMessage("testArgs", Locale.ENGLISH, "test {0} message {1}");
	addMessage("testArgsFormat", Locale.ENGLISH, "test {0} message {1,number,#.##} X");

	registerSingleton(UiApplicationContextUtils.THEME_SOURCE_BEAN_NAME, DummyThemeSource.class);

	registerSingleton("handlerMapping", BeanNameUrlHandlerMapping.class);
	registerSingleton("viewResolver", InternalResourceViewResolver.class);

	MutablePropertyValues pvs = new MutablePropertyValues();
	pvs.add("location", "org/springframework/web/context/WEB-INF/sessionContext.xml");
	registerSingleton("viewResolver2", XmlViewResolver.class, pvs);

	super.refresh();
}
 
Example #2
Source File: StaticWebApplicationContext.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #3
Source File: GenericWebApplicationContext.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #4
Source File: AbstractRefreshableWebApplicationContext.java    From spring-analysis-note with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #5
Source File: StaticWebApplicationContext.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #6
Source File: GenericWebApplicationContext.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #7
Source File: AbstractRefreshableWebApplicationContext.java    From java-technology-stack with MIT License 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #8
Source File: StaticWebApplicationContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #9
Source File: GenericWebApplicationContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #10
Source File: AbstractRefreshableWebApplicationContext.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #11
Source File: StaticWebApplicationContext.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #12
Source File: GenericWebApplicationContext.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}
 
Example #13
Source File: AbstractRefreshableWebApplicationContext.java    From spring4-understanding with Apache License 2.0 4 votes vote down vote up
/**
 * Initialize the theme capability.
 */
@Override
protected void onRefresh() {
	this.themeSource = UiApplicationContextUtils.initThemeSource(this);
}