|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2012 the original author or authors. |
|
|
|
* Copyright 2002-2013 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -26,7 +26,6 @@ import org.springframework.beans.factory.parsing.CompositeComponentDefinition; |
|
|
|
import org.springframework.beans.factory.support.RootBeanDefinition; |
|
|
|
import org.springframework.beans.factory.support.RootBeanDefinition; |
|
|
|
import org.springframework.beans.factory.xml.BeanDefinitionParser; |
|
|
|
import org.springframework.beans.factory.xml.BeanDefinitionParser; |
|
|
|
import org.springframework.beans.factory.xml.ParserContext; |
|
|
|
import org.springframework.beans.factory.xml.ParserContext; |
|
|
|
import org.springframework.transaction.annotation.AnnotationTransactionAttributeSource; |
|
|
|
|
|
|
|
import org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor; |
|
|
|
import org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor; |
|
|
|
import org.springframework.transaction.interceptor.TransactionInterceptor; |
|
|
|
import org.springframework.transaction.interceptor.TransactionInterceptor; |
|
|
|
|
|
|
|
|
|
|
@ -118,7 +117,8 @@ class AnnotationDrivenBeanDefinitionParser implements BeanDefinitionParser { |
|
|
|
Object eleSource = parserContext.extractSource(element); |
|
|
|
Object eleSource = parserContext.extractSource(element); |
|
|
|
|
|
|
|
|
|
|
|
// Create the TransactionAttributeSource definition.
|
|
|
|
// Create the TransactionAttributeSource definition.
|
|
|
|
RootBeanDefinition sourceDef = new RootBeanDefinition(AnnotationTransactionAttributeSource.class); |
|
|
|
RootBeanDefinition sourceDef = new RootBeanDefinition( |
|
|
|
|
|
|
|
"org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"); |
|
|
|
sourceDef.setSource(eleSource); |
|
|
|
sourceDef.setSource(eleSource); |
|
|
|
sourceDef.setRole(BeanDefinition.ROLE_INFRASTRUCTURE); |
|
|
|
sourceDef.setRole(BeanDefinition.ROLE_INFRASTRUCTURE); |
|
|
|
String sourceName = parserContext.getReaderContext().registerWithGeneratedName(sourceDef); |
|
|
|
String sourceName = parserContext.getReaderContext().registerWithGeneratedName(sourceDef); |
|
|
|