Top Description Fields Constructors Methods
org.springframework.scheduling.annotation

public Class AsyncConfigurationSelector

extends AdviceModeImportSelector<EnableAsync>
Class Inheritance
Imports
org.springframework.context.annotation.AdviceMode, .AdviceModeImportSelector, org.springframework.lang.NonNull

Selects which implementation of AbstractAsyncConfiguration should be used based on the value of EnableAsync#mode on the importing @Configuration class.
Authors
Chris Beams, Juergen Hoeller
Since
3.1
See Also
EnableAsync, ProxyAsyncConfiguration

Field Summary

Modifier and TypeField and Description
private static final String
Inherited from org.springframework.context.annotation.AdviceModeImportSelector:
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
selectImports(AdviceMode
the value of the advice mode attribute for the annotation specified via generics.
adviceMode
)

Implements abstract org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

Returns ProxyAsyncConfiguration or AspectJAsyncConfiguration for PROXY and ASPECTJ values of EnableAsync#mode(), respectively.
Inherited from org.springframework.context.annotation.AdviceModeImportSelector:
getAdviceModeAttributeNameselectImports

Field Detail

ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAMEback to summary
private static final String ASYNC_EXECUTION_ASPECT_CONFIGURATION_CLASS_NAME

Constructor Detail

AsyncConfigurationSelectorback to summary
public AsyncConfigurationSelector()

Method Detail

selectImportsback to summary
public String[] selectImports(AdviceMode adviceMode)

Implements abstract org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

Returns ProxyAsyncConfiguration or AspectJAsyncConfiguration for PROXY and ASPECTJ values of EnableAsync#mode(), respectively.

Parameters
adviceMode:AdviceMode

Doc from org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

the value of the advice mode attribute for the annotation specified via generics.

Returns:String[]

Doc from org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

array containing classes to import (empty array if none; null if the given AdviceMode is unknown)

Annotations
@Override
@NonNull