类 TransactionManagementConfigurationSelector
- java.lang.Object
- org.springframework.context.annotation.AdviceModeImportSelector<EnableTransactionManagement>
- org.springframework.transaction.annotation.TransactionManagementConfigurationSelector
- 所有已实现的接口:
ImportSelector
public class TransactionManagementConfigurationSelector extends AdviceModeImportSelector<EnableTransactionManagement>
Selects which implementation ofAbstractTransactionManagementConfiguration
should be used based on the value ofEnableTransactionManagement.mode()
on the importing@Configuration
class.
字段概要
从类继承的字段 org.springframework.context.annotation.AdviceModeImportSelector
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
构造器概要
构造器 构造器 说明 TransactionManagementConfigurationSelector()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected String[]
selectImports(AdviceMode adviceMode)
ReturnsProxyTransactionManagementConfiguration
orAspectJTransactionManagementConfiguration
forPROXY
andASPECTJ
values ofEnableTransactionManagement.mode()
, respectively.从类继承的方法 org.springframework.context.annotation.AdviceModeImportSelector
getAdviceModeAttributeName, selectImports
构造器详细资料
TransactionManagementConfigurationSelector
public TransactionManagementConfigurationSelector()
方法详细资料
selectImports
protected String[] selectImports(AdviceMode adviceMode)
ReturnsProxyTransactionManagementConfiguration
orAspectJTransactionManagementConfiguration
forPROXY
andASPECTJ
values ofEnableTransactionManagement.mode()
, respectively.- 指定者:
selectImports
在类中AdviceModeImportSelector<EnableTransactionManagement>
- 参数:
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)