Example usage for org.springframework.scheduling.annotation AsyncAnnotationAdvisor setAsyncAnnotationType

List of usage examples for org.springframework.scheduling.annotation AsyncAnnotationAdvisor setAsyncAnnotationType

Introduction

In this page you can find the example usage for org.springframework.scheduling.annotation AsyncAnnotationAdvisor setAsyncAnnotationType.

Prototype

public void setAsyncAnnotationType(Class<? extends Annotation> asyncAnnotationType) 

Source Link

Document

Set the 'async' annotation type.

Usage

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;
}