org.springframework.transaction.config
Class AnnotationDrivenBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.transaction.config.AnnotationDrivenBeanDefinitionParser
- All Implemented Interfaces:
- BeanDefinitionParser
class AnnotationDrivenBeanDefinitionParser
- extends AbstractBeanDefinitionParser
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
'.
- Since:
- 2.0
- Author:
- Rob Harrop
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationDrivenBeanDefinitionParser
AnnotationDrivenBeanDefinitionParser()
parseInternal
protected AbstractBeanDefinition parseInternal(Element element,
ParserContext parserContext)
- Parses the '
<tx:annotation-driven/>>
' tag. Will
register an AutoProxyCreator
in
the container as necessary.
- Specified by:
parseInternal
in class AbstractBeanDefinitionParser
- Parameters:
element
- the element that is to be parsed into one or more BeanDefinitions
parserContext
- the object encapsulating the current state of the parsing process;
provides access to a BeanDefinitionRegistry
- Returns:
- the primary
BeanDefinition
resulting from the parsing of the supplied Element
- See Also:
AbstractBeanDefinitionParser.parse(org.w3c.dom.Element, ParserContext)
,
AbstractBeanDefinitionParser.postProcessComponentDefinition(org.springframework.beans.factory.parsing.BeanComponentDefinition)
shouldGenerateId
protected boolean shouldGenerateId()
- Description copied from class:
AbstractBeanDefinitionParser
- Should an ID be generated instead of read for the passed in
Element
?
Disabled by default; subclasses can override this to enable ID generation.
- Overrides:
shouldGenerateId
in class AbstractBeanDefinitionParser
Copyright © 2002-2006 The Spring Framework.