类 AsyncConfigurationSelector
- java.lang.Object
- org.springframework.context.annotation.AdviceModeImportSelector<EnableAsync>
- org.springframework.scheduling.annotation.AsyncConfigurationSelector
- 所有已实现的接口:
ImportSelector
public class AsyncConfigurationSelector extends AdviceModeImportSelector<EnableAsync>
Selects which implementation ofAbstractAsyncConfiguration
should be used based on the value ofEnableAsync.mode()
on the importing@Configuration
class.- 从以下版本开始:
- 3.1
- 作者:
- Chris Beams, Juergen Hoeller
- 另请参阅:
EnableAsync
,ProxyAsyncConfiguration
字段概要
从类继承的字段 org.springframework.context.annotation.AdviceModeImportSelector
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
构造器概要
构造器 构造器 说明 AsyncConfigurationSelector()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String[]
selectImports(AdviceMode adviceMode)
ReturnsProxyAsyncConfiguration
orAspectJAsyncConfiguration
forPROXY
andASPECTJ
values ofEnableAsync.mode()
, respectively.从类继承的方法 org.springframework.context.annotation.AdviceModeImportSelector
getAdviceModeAttributeName, selectImports
构造器详细资料
AsyncConfigurationSelector
public AsyncConfigurationSelector()
方法详细资料
selectImports
public String[] selectImports(AdviceMode adviceMode)
ReturnsProxyAsyncConfiguration
orAspectJAsyncConfiguration
forPROXY
andASPECTJ
values ofEnableAsync.mode()
, respectively.- 指定者:
selectImports
在类中AdviceModeImportSelector<EnableAsync>
- 参数:
adviceMode
- the value of the advice mode attribute for the annotation specified via generics.- 返回:
- array containing classes to import (empty array if none;
null
if the givenAdviceMode
is unknown)