org.springframework.context.support.AbstractRefreshableConfigApplicationContext Java Examples

The following examples show how to use org.springframework.context.support.AbstractRefreshableConfigApplicationContext. 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: SpringCmdRunner.java    From onetwo with Apache License 2.0 5 votes vote down vote up
@Override
	protected void startAppContext(String[] args) {
//		SpringConfigApplicationContext context = new SpringConfigApplicationContext();
		AbstractRefreshableConfigApplicationContext context = createApplicationContext();
//		context.setConfigLocation("");
		Springs.initApplicationIfNotInitialized(context);
		initApplicationContext(context);
		context.refresh();
		this.afterInitApplicationContext(context);
	}
 
Example #2
Source File: SpringCmdRunner.java    From onetwo with Apache License 2.0 4 votes vote down vote up
protected void initApplicationContext(AbstractRefreshableConfigApplicationContext context){
}
 
Example #3
Source File: SpringCmdRunner.java    From onetwo with Apache License 2.0 4 votes vote down vote up
protected void afterInitApplicationContext(AbstractRefreshableConfigApplicationContext context){
	Springs.getInstance().printBeanNames();
}
 
Example #4
Source File: SpringCmdRunner.java    From onetwo with Apache License 2.0 votes vote down vote up
abstract protected AbstractRefreshableConfigApplicationContext createApplicationContext();