List of usage examples for org.springframework.scheduling.annotation AsyncAnnotationAdvisor AsyncAnnotationAdvisor
@SuppressWarnings("unchecked") public AsyncAnnotationAdvisor(@Nullable Supplier<Executor> executor, @Nullable Supplier<AsyncUncaughtExceptionHandler> exceptionHandler)
From source file:org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessor.java
@Override public void setBeanFactory(BeanFactory beanFactory) { super.setBeanFactory(beanFactory); AsyncAnnotationAdvisor advisor = new AsyncAnnotationAdvisor(this.executor, this.exceptionHandler); if (this.asyncAnnotationType != null) { advisor.setAsyncAnnotationType(this.asyncAnnotationType); }//from w w w . j av a 2s .com advisor.setBeanFactory(beanFactory); this.advisor = advisor; }