Class AsyncConfigurationSelector
java.lang.Object
org.springframework.context.annotation.AdviceModeImportSelector<EnableAsync>
org.springframework.scheduling.annotation.AsyncConfigurationSelector
- All Implemented Interfaces:
- ImportSelector
Selects which implementation of 
AbstractAsyncConfiguration should
be used based on the value of EnableAsync.mode() on the importing
@Configuration class.- Since:
- 3.1
- Author:
- Chris Beams, Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class AdviceModeImportSelectorDEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionString[]selectImports(AdviceMode adviceMode) ReturnsProxyAsyncConfigurationorAspectJAsyncConfigurationforPROXYandASPECTJvalues ofEnableAsync.mode(), respectively.Methods inherited from class AdviceModeImportSelectorgetAdviceModeAttributeName, selectImportsMethods inherited from class Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ImportSelectorgetExclusionFilter
- 
Constructor Details- 
AsyncConfigurationSelectorpublic AsyncConfigurationSelector()
 
- 
- 
Method Details- 
selectImportsReturnsProxyAsyncConfigurationorAspectJAsyncConfigurationforPROXYandASPECTJvalues ofEnableAsync.mode(), respectively.- Specified by:
- selectImportsin class- AdviceModeImportSelector<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)
 
 
-