public class AsyncConfigurationSelector extends AdviceModeImportSelector<EnableAsync>
AbstractAsyncConfiguration
should be used based
on the value of EnableAsync.mode()
on the importing @Configuration
class.EnableAsync
,
ProxyAsyncConfiguration
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
Constructor and Description |
---|
AsyncConfigurationSelector() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
selectImports(AdviceMode adviceMode)
Determine which classes should be imported based on the given
AdviceMode . |
getAdviceModeAttributeName, selectImports
public java.lang.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