Top Description Inners Constructors Methods
org.springframework.transaction.config

pack-priv Class AnnotationDrivenBeanDefinitionParser

extends Object
implements BeanDefinitionParser
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.xml.BeanDefinitionParser
Imports
org.w3c.dom.Element, org.springframework.aop.config.AopNamespaceUtils, org.springframework.beans.factory.config.BeanDefinition, .RuntimeBeanReference, org.springframework.beans.factory.parsing.BeanComponentDefinition, .CompositeComponentDefinition, org.springframework.beans.factory.support.RootBeanDefinition, org.springframework.beans.factory.xml.BeanDefinitionParser, .ParserContext, org.springframework.lang.Nullable, org.springframework.transaction.event.TransactionalEventListenerFactory, org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor, .TransactionInterceptor, org.springframework.util.ClassUtils

BeanDefinitionParser implementation that allows users to easily configure all the infrastructure beans required to enable annotation-driven transaction demarcation.

By default, all proxies are created as JDK proxies. This may cause some problems if you are injecting objects as concrete classes rather than interfaces. To overcome this restriction you can set the 'proxy-target-class' attribute to 'true', which will result in class-based proxies being created.

Authors
Juergen Hoeller, Rob Harrop, Chris Beams, Stephane Nicoll
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
AnnotationDrivenBeanDefinitionParser.AopAutoProxyConfigurer

Inner class to just introduce an AOP framework dependency when actually in proxy mode.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BeanDefinition
parse(Element
the element that is to be parsed into one or more BeanDefinitions
element
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Implements org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

Parses the <tx:annotation-driven/> tag.

private void
private void
private void
private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AnnotationDrivenBeanDefinitionParserback to summary
pack-priv AnnotationDrivenBeanDefinitionParser()

Method Detail

parseback to summary
public BeanDefinition parse(Element element, ParserContext parserContext)

Implements org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

Parses the <tx:annotation-driven/> tag. Will register an AutoProxyCreator with the container as necessary.

Parameters
element:Element

Doc from org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

the element that is to be parsed into one or more BeanDefinitions

parserContext:ParserContext

Doc from org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry

Returns:BeanDefinition

Doc from org.springframework.beans.factory.xml.BeanDefinitionParser.parse.

the primary BeanDefinition

Annotations
@Override
@Nullable
registerJtaTransactionAspectback to summary
private void registerJtaTransactionAspect(Element element, ParserContext parserContext)
registerTransactionalEventListenerFactoryback to summary
private void registerTransactionalEventListenerFactory(ParserContext parserContext)
registerTransactionAspectback to summary
private void registerTransactionAspect(Element element, ParserContext parserContext)
registerTransactionManagerback to summary
private static void registerTransactionManager(Element element, BeanDefinition def)
org.springframework.transaction.config back to summary

private Class AnnotationDrivenBeanDefinitionParser.AopAutoProxyConfigurer

extends Object
Class Inheritance
  • java.lang.Object
  • org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser.AopAutoProxyConfigurer

Inner class to just introduce an AOP framework dependency when actually in proxy mode.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AopAutoProxyConfigurerback to summary
private AopAutoProxyConfigurer()

Method Detail

configureAutoProxyCreatorback to summary
public static void configureAutoProxyCreator(Element element, ParserContext parserContext)