Class AsyncConfigurationSelector
- java.lang.Object
- org.springframework.context.annotation.AdviceModeImportSelector<EnableAsync>
- org.springframework.scheduling.annotation.AsyncConfigurationSelector
- All Implemented Interfaces:
ImportSelector
public class AsyncConfigurationSelector extends AdviceModeImportSelector<EnableAsync>
Selects which implementation ofAbstractAsyncConfigurationshould be used based on the value ofEnableAsync.mode()on the importing@Configurationclass.- Since:
- 3.1
- Author:
- Chris Beams, Juergen Hoeller
- See Also:
EnableAsync,ProxyAsyncConfiguration
Field Summary
Fields inherited from class org.springframework.context.annotation.AdviceModeImportSelector
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
Constructor Summary
Constructors Constructor Description AsyncConfigurationSelector()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]selectImports(AdviceMode adviceMode)ReturnsProxyAsyncConfigurationorAspectJAsyncConfigurationforPROXYandASPECTJvalues ofEnableAsync.mode(), respectively.Methods inherited from class org.springframework.context.annotation.AdviceModeImportSelector
getAdviceModeAttributeName, selectImports
Constructor Detail
AsyncConfigurationSelector
public AsyncConfigurationSelector()
Method Detail
selectImports
public String[] selectImports(AdviceMode adviceMode)
ReturnsProxyAsyncConfigurationorAspectJAsyncConfigurationforPROXYandASPECTJvalues ofEnableAsync.mode(), respectively.- Specified by:
selectImportsin classAdviceModeImportSelector<EnableAsync>- Parameters:
adviceMode- the value of the advice mode attribute for the annotation specified via generics.- Returns:
- array containing classes to import (empty array if none;
nullif the givenAdviceModeis unknown)