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 ofAbstractTransactionManagementConfiguration
should be used based on the value ofEnableTransactionManagement.mode()
on the importing@Configuration
class.- 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)
ReturnsProxyTransactionManagementConfiguration
orAspectJTransactionManagementConfiguration
forPROXY
andASPECTJ
values 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)
ReturnsProxyTransactionManagementConfiguration
orAspectJTransactionManagementConfiguration
forPROXY
andASPECTJ
values ofEnableTransactionManagement.mode()
, respectively.- Specified by:
selectImports
in 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;
null
if the givenAdviceMode
is unknown)