|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.transaction.interceptor.TransactionAspectUtils
public abstract class TransactionAspectUtils
Utility methods for obtaining a PlatformTransactionManager by
qualifier value.
| Constructor Summary | |
|---|---|
TransactionAspectUtils()
|
|
| Method Summary | |
|---|---|
static PlatformTransactionManager |
getTransactionManager(BeanFactory beanFactory,
java.lang.String qualifier)
Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier. |
static PlatformTransactionManager |
getTransactionManager(ConfigurableListableBeanFactory bf,
java.lang.String qualifier)
Obtain a PlatformTransactionManager from the given BeanFactory, matching the given qualifier. |
private static boolean |
isQualifierMatch(java.lang.String qualifier,
java.lang.String beanName,
ConfigurableListableBeanFactory bf)
Check whether we have a qualifier match for the given candidate bean. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionAspectUtils()
| Method Detail |
|---|
public static PlatformTransactionManager getTransactionManager(BeanFactory beanFactory,
java.lang.String qualifier)
beanFactory - the BeanFactory to get the PlatformTransactionManager bean fromqualifier - the qualifier for selecting between multiple PlatformTransactionManager matches
null)
java.lang.IllegalStateException - if no matching PlatformTransactionManager bean found
public static PlatformTransactionManager getTransactionManager(ConfigurableListableBeanFactory bf,
java.lang.String qualifier)
bf - the BeanFactory to get the PlatformTransactionManager bean fromqualifier - the qualifier for selecting between multiple PlatformTransactionManager matches
null)
java.lang.IllegalStateException - if no matching PlatformTransactionManager bean found
private static boolean isQualifierMatch(java.lang.String qualifier,
java.lang.String beanName,
ConfigurableListableBeanFactory bf)
qualifier - the qualifier that we are looking forbeanName - the name of the candidate beanbf - the BeanFactory to get the bean definition from
true if either the bean definition (in the XML case)
or the bean's factory method (in the @Bean case) defines a matching qualifier
value (through <qualifier<> or @Qualifier)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||