public abstract class

TransactionAspectUtils

extends Object
java.lang.Object
   ↳ org.springframework.transaction.interceptor.TransactionAspectUtils

Class Overview

Utility methods for obtaining a PlatformTransactionManager by qualifier value.

Summary

Public Constructors
TransactionAspectUtils()
Public Methods
static PlatformTransactionManager getTransactionManager(ConfigurableListableBeanFactory bf, String qualifier)
Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier.
static PlatformTransactionManager getTransactionManager(BeanFactory beanFactory, String qualifier)
Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TransactionAspectUtils ()

Public Methods

public static PlatformTransactionManager getTransactionManager (ConfigurableListableBeanFactory bf, String qualifier)

Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier.

Parameters
bf the BeanFactory to get the PlatformTransactionManager bean from
qualifier the qualifier for selecting between multiple PlatformTransactionManager matches
Returns
  • the chosen PlatformTransactionManager (never null)
Throws
IllegalStateException if no matching PlatformTransactionManager bean found

public static PlatformTransactionManager getTransactionManager (BeanFactory beanFactory, String qualifier)

Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier.

Parameters
beanFactory the BeanFactory to get the PlatformTransactionManager bean from
qualifier the qualifier for selecting between multiple PlatformTransactionManager matches
Returns
  • the chosen PlatformTransactionManager (never null)
Throws
IllegalStateException if no matching PlatformTransactionManager bean found