Code example for ConfigurableApplicationContext

Methods: close

0
	 * Close the view bean factory on context shutdown. 
	 */ 
	@Override 
	public void destroy() throws BeansException { 
		if (this.cachedFactory != null) { 
			this.cachedFactory.close(); 
		} 
	} 
 
}