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

This code example shows how to use the following methods:
 * @see EnableAsync 
 * @see org.springframework.scheduling.annotation.AsyncConfigurationSelector 
 * @see org.springframework.scheduling.annotation.ProxyAsyncConfiguration 
 */ 
@Configuration 
public class AspectJAsyncConfiguration extends AbstractAsyncConfiguration { 
 
	@Bean(name = TaskManagementConfigUtils.ASYNC_EXECUTION_ASPECT_BEAN_NAME) 
	@Role(BeanDefinition.ROLE_INFRASTRUCTURE) 
	public AnnotationAsyncExecutionAspect asyncAdvisor() { 
		AnnotationAsyncExecutionAspect asyncAspect = AnnotationAsyncExecutionAspect.aspectOf(); 
		if (this.executor != null) { 
			asyncAspect.setExecutor(this.executor); 
		} 
		if (this.exceptionHandler != null) { 
			asyncAspect.setExceptionHandler(this.exceptionHandler); 
		} 
		return asyncAspect; 
	} 
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java