List of usage examples for org.springframework.scheduling.annotation AsyncAnnotationAdvisor setAsyncAnnotationType
public void setAsyncAnnotationType(Class<? extends Annotation> asyncAnnotationType)
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); }/* ww w . j a v a2s . c o m*/ advisor.setBeanFactory(beanFactory); this.advisor = advisor; }