Spring Framework SourceFilteringListener - 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 SourceFilteringListener class.

This code example shows how to use the following methods:
	//******************************************************************** 
	private void setApplicationListener(WebApplicationContext wac) { 
		 
		// See bug on spring 3.0+ : https://jira.springsource.org/browse/SPR-6228 
		//!!! Add context event listener 
		SourceFilteringListener listener = new SourceFilteringListener(wac, this); 
		((ConfigurableWebApplicationContext)wac).addApplicationListener(listener); 
		((XmlWebApplicationContext)wac).getApplicationListeners().add(listener); 
		 
	} 
	 
	 
	public void onApplicationEvent(ContextRefreshedEvent event) { 
		destroy(); 
		 
		//here is reason why we need to copy code rather than extends. 
		this.delegate = null; 
		 
		try { 
			initFilterBean(); 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java