@Configuration public class AspectJAsyncConfiguration extends AbstractAsyncConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary
to enable AspectJ-based asynchronous method execution.EnableAsync
,
AsyncConfigurationSelector
enableAsync, executor
Constructor and Description |
---|
AspectJAsyncConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect |
asyncAdvisor()
The component that will apply async execution advice to beans annotated with
the async annotation.
|
setImportMetadata
@Bean(name="org.springframework.scheduling.config.internalAsyncExecutionAspect") @Role(value=2) public org.springframework.scheduling.aspectj.AnnotationAsyncExecutionAspect asyncAdvisor()
AbstractAsyncConfiguration
asyncAdvisor
in class AbstractAsyncConfiguration