Advisor that activates asynchronous method execution through the {@link 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 {@link #setAsyncAnnotationType "asyncAnnotationType"} property.
@author Juergen Hoeller
@since 3.0
@see org.springframework.dao.annotation.PersistenceExceptionTranslationAdvisor
@see org.springframework.stereotype.Repository
@see org.springframework.dao.DataAccessException
@see org.springframework.dao.support.PersistenceExceptionTranslator