org.springframework.scheduling.aspectj
Class AspectJAsyncConfiguration
java.lang.Object
org.springframework.scheduling.annotation.AbstractAsyncConfiguration
org.springframework.scheduling.aspectj.AspectJAsyncConfiguration
- All Implemented Interfaces:
- Aware, ImportAware
@Configuration
public class AspectJAsyncConfiguration
- extends AbstractAsyncConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary
to enable AspectJ-based asynchronous method execution.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
EnableAsync
,
AsyncConfigurationSelector
Method Summary |
AnnotationAsyncExecutionAspect |
asyncAdvisor()
The component that will apply async execution advice to beans annotated with
the async annotation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AspectJAsyncConfiguration
public AspectJAsyncConfiguration()
asyncAdvisor
@Bean(name="org.springframework.scheduling.config.internalAsyncExecutionAspect")
@Role(value=2)
public AnnotationAsyncExecutionAspect asyncAdvisor()
- Description copied from class:
AbstractAsyncConfiguration
- The component that will apply async execution advice to beans annotated with
the async annotation. Subclasses will provide either a BeanPostProcessor in
the case of proxy-based advice, or an AspectJ aspect if weaving is preferred.
- Specified by:
asyncAdvisor
in class AbstractAsyncConfiguration