Class TransactionManagementConfigurationSelector
- java.lang.Object
- org.springframework.context.annotation.AdviceModeImportSelector<EnableTransactionManagement>
- org.springframework.transaction.annotation.TransactionManagementConfigurationSelector
- All Implemented Interfaces:
ImportSelector
public class TransactionManagementConfigurationSelector extends AdviceModeImportSelector<EnableTransactionManagement>
Selects which implementation ofAbstractTransactionManagementConfigurationshould be used based on the value ofEnableTransactionManagement.mode()on the importing@Configurationclass.- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
EnableTransactionManagement,ProxyTransactionManagementConfiguration,TransactionManagementConfigUtils.TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME
Field Summary
Fields inherited from class org.springframework.context.annotation.AdviceModeImportSelector
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
Constructor Summary
Constructors Constructor Description TransactionManagementConfigurationSelector()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]selectImports(AdviceMode adviceMode)ReturnsProxyTransactionManagementConfigurationorAspectJTransactionManagementConfigurationforPROXYandASPECTJvalues ofEnableTransactionManagement.mode(), respectively.Methods inherited from class org.springframework.context.annotation.AdviceModeImportSelector
getAdviceModeAttributeName, selectImports
Constructor Detail
TransactionManagementConfigurationSelector
public TransactionManagementConfigurationSelector()
Method Detail
selectImports
protected String[] selectImports(AdviceMode adviceMode)
ReturnsProxyTransactionManagementConfigurationorAspectJTransactionManagementConfigurationforPROXYandASPECTJvalues ofEnableTransactionManagement.mode(), respectively.- Specified by:
selectImportsin classAdviceModeImportSelector<EnableTransactionManagement>- 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)