Spring Framework ConfigurableApplicationContext - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework ConfigurableApplicationContext class.

This code example shows how to use the following methods:close
	 * Close the view bean factory on context shutdown. 
	 */ 
	@Override 
	public void destroy() throws BeansException { 
		if (this.cachedFactory != null) { 
			this.cachedFactory.close(); 
		} 
	} 
 
} 
5
CodeRank
This code example shows how to use the following methods:getBeanFactory
			testContext.setAttribute(RESET_REQUEST_CONTEXT_HOLDER_ATTRIBUTE, Boolean.TRUE); 
 
			if (wac instanceof ConfigurableApplicationContext) { 
				@SuppressWarnings("resource") 
				ConfigurableApplicationContext configurableApplicationContext = (ConfigurableApplicationContext) wac; 
				ConfigurableListableBeanFactory bf = configurableApplicationContext.getBeanFactory(); 
				bf.registerResolvableDependency(MockHttpServletResponse.class, response); 
				bf.registerResolvableDependency(ServletWebRequest.class, servletWebRequest); 
			} 
		} 
	} 
 
} 
5
CodeRank
See Code Examples for Spring Framework ConfigurableApplicationContext Methods: