public class AsyncConfigurationSelector extends AdviceModeImportSelector<EnableAsync>
AbstractAsyncConfiguration should be used based
on the value of EnableAsync.mode() on the importing @Configuration class.EnableAsync,
ProxyAsyncConfigurationDEFAULT_ADVICE_MODE_ATTRIBUTE_NAME| Constructor and Description |
|---|
AsyncConfigurationSelector() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
selectImports(AdviceMode adviceMode)
Determine which classes should be imported based on the given
AdviceMode. |
getAdviceModeAttributeName, selectImportspublic String[] selectImports(AdviceMode adviceMode)
AdviceMode.
Returning null from this method indicates that the AdviceMode could
not be handled or was unknown and that an IllegalArgumentException should
be thrown.
selectImports in class AdviceModeImportSelector<EnableAsync>adviceMode - the value of the advice mode attribute for the annotation specified via generics.ProxyAsyncConfiguration or AspectJAsyncConfiguration for
PROXY and ASPECTJ values of EnableAsync.mode(), respectively