Top Description Fields Constructors Methods
org.springframework.transaction.annotation

public Class TransactionManagementConfigurationSelector

extends AdviceModeImportSelector<EnableTransactionManagement>
Class Inheritance
Imports
org.springframework.context.annotation.AdviceMode, .AdviceModeImportSelector, .AutoProxyRegistrar, org.springframework.transaction.config.TransactionManagementConfigUtils, org.springframework.util.ClassUtils

Selects which implementation of AbstractTransactionManagementConfiguration should be used based on the value of EnableTransactionManagement#mode on the importing @Configuration class.
Authors
Chris Beams, Juergen Hoeller
Since
3.1
See Also
EnableTransactionManagement, ProxyTransactionManagementConfiguration, TransactionManagementConfigUtils#TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME, TransactionManagementConfigUtils#JTA_TRANSACTION_ASPECT_CONFIGURATION_CLASS_NAME

Field Summary

Inherited from org.springframework.context.annotation.AdviceModeImportSelector:
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private String
protected String[]
selectImports(AdviceMode
the value of the advice mode attribute for the annotation specified via generics.
adviceMode
)

Implements abstract org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

Returns ProxyTransactionManagementConfiguration or AspectJ(Jta)TransactionManagementConfiguration for PROXY and ASPECTJ values of EnableTransactionManagement#mode(), respectively.
Inherited from org.springframework.context.annotation.AdviceModeImportSelector:
getAdviceModeAttributeNameselectImports

Constructor Detail

TransactionManagementConfigurationSelectorback to summary
public TransactionManagementConfigurationSelector()

Method Detail

determineTransactionAspectClassback to summary
private String determineTransactionAspectClass()
selectImportsback to summary
protected String[] selectImports(AdviceMode adviceMode)

Implements abstract org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

Returns ProxyTransactionManagementConfiguration or AspectJ(Jta)TransactionManagementConfiguration for PROXY and ASPECTJ values of EnableTransactionManagement#mode(), respectively.

Parameters
adviceMode:AdviceMode

Doc from org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

the value of the advice mode attribute for the annotation specified via generics.

Returns:String[]

Doc from org.springframework.context.annotation.AdviceModeImportSelector.selectImports.

array containing classes to import (empty array if none; null if the given AdviceMode is unknown)

Annotations
@Override