open class AsyncAnnotationAdvisor : AbstractPointcutAdvisor, BeanFactoryAware
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.
Author
Juergen Hoeller
Since
3.0
See Also
AsyncAnnotationAsyncExecutionInterceptor
AsyncAnnotationAdvisor()
Create a new AsyncAnnotationAdvisor(executor: Executor, exceptionHandler: AsyncUncaughtExceptionHandler)
Create a new |
open fun getAdvice(): Advice |
|
open fun getPointcut(): Pointcut |
|
open fun setAsyncAnnotationType(asyncAnnotationType: Class<out Annotation>): Unit
Set the 'async' annotation type. The default async annotation type is the Async annotation, as well as the EJB 3.1 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. |
|
open fun setBeanFactory(beanFactory: BeanFactory): Unit
Set the |
|
open fun setTaskExecutor(executor: Executor): Unit
Specify the default task executor to use for asynchronous methods. |