org.springframework.scheduling.annotation

Class AsyncAnnotationAdvisor

    • Method Detail

      • setAsyncAnnotationType

        public void setAsyncAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> asyncAnnotationType)
        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.

        Parameters:
        asyncAnnotationType - the desired annotation type
      • setBeanFactory

        public void setBeanFactory(BeanFactory beanFactory)
        Set the BeanFactory to be used when looking up executors by qualifier.
        Specified by:
        setBeanFactory in interface BeanFactoryAware
        Parameters:
        beanFactory - owning BeanFactory (never null). The bean can immediately call methods on the factory.
        See Also:
        BeanInitializationException
      • buildPointcut

        protected Pointcut buildPointcut(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> asyncAnnotationTypes)
        Calculate a pointcut for the given async annotation types, if any.
        Parameters:
        asyncAnnotationTypes - the async annotation types to introspect
        Returns:
        the applicable Pointcut object, or null if none