BeanFactoryUtils
@Deprecated public abstract class TransactionAspectUtils extends Object
qualifier value
.Constructor and Description |
---|
TransactionAspectUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static PlatformTransactionManager |
getTransactionManager(BeanFactory beanFactory,
String qualifier)
Deprecated.
as of Spring 3.1.2 in favor of
BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory, Class, String) |
static PlatformTransactionManager |
getTransactionManager(ConfigurableListableBeanFactory bf,
String qualifier)
Deprecated.
as of Spring 3.1.2 in favor of
BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory, Class, String) |
public static PlatformTransactionManager getTransactionManager(BeanFactory beanFactory, String qualifier)
BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory, Class, String)
beanFactory
- the BeanFactory to get the PlatformTransactionManager
bean fromqualifier
- the qualifier for selecting between multiple PlatformTransactionManager
matchesPlatformTransactionManager
(never null
)IllegalStateException
- if no matching PlatformTransactionManager
bean foundpublic static PlatformTransactionManager getTransactionManager(ConfigurableListableBeanFactory bf, String qualifier)
BeanFactoryAnnotationUtils.qualifiedBeanOfType(BeanFactory, Class, String)
bf
- the BeanFactory to get the PlatformTransactionManager
bean fromqualifier
- the qualifier for selecting between multiple PlatformTransactionManager
matchesPlatformTransactionManager
(never null
)IllegalStateException
- if no matching PlatformTransactionManager
bean found