java.lang.Object | ||
↳ | org.springframework.aop.support.AbstractPointcutAdvisor | |
↳ | org.springframework.scheduling.annotation.AsyncAnnotationAdvisor |
Advisor that activates asynchronous method execution through the Async
annotation. This annotation can be used at the method and type level in
implementation classes as well as in service interfaces.
This advisor detects the EJB 3.1 javax.ejb.Asynchronous
annotation as well, treating it exactly like Spring's own Async
.
Furthermore, a custom async annotation type may get specified through the
"asyncAnnotationType"
property.
Repository
DataAccessException
PersistenceExceptionTranslator
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.springframework.core.Ordered
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new ConcurrencyAnnotationBeanPostProcessor for bean-style configuration.
| |||||||||||
Create a new ConcurrencyAnnotationBeanPostProcessor for the given task executor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Set the 'async' annotation type.
| |||||||||||
Specify the task executor to use for asynchronous methods.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Calculate a pointcut for the given target class, if any.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.aop.support.AbstractPointcutAdvisor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.aop.Advisor
| |||||||||||
From interface
org.springframework.aop.PointcutAdvisor
| |||||||||||
From interface
org.springframework.core.Ordered
|
Create a new ConcurrencyAnnotationBeanPostProcessor for bean-style configuration.
Create a new ConcurrencyAnnotationBeanPostProcessor for the given task executor.
executor | the task executor to use for asynchronous methods |
---|
Set the 'async' annotation type.
The default async annotation type is the Async
annotation, as well
as the EJB 3.1 javax.ejb.Asynchronous
annotation (if present).
This setter property exists so that developers can provide their own (non-Spring-specific) annotation type to indicate that a method is to be executed asynchronously.
asyncAnnotationType | the desired annotation type |
---|
Specify the task executor to use for asynchronous methods.
Calculate a pointcut for the given target class, if any.
null
if none