Top Description Constructors Methods
org.springframework.transaction.config

public Class JtaTransactionManagerBeanDefinitionParser

extends AbstractSingleBeanDefinitionParser
Class Inheritance
Imports
org.w3c.dom.Element, org.springframework.beans.factory.support.AbstractBeanDefinition, org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser, .ParserContext, org.springframework.transaction.jta.JtaTransactionManager

Parser for the <tx:jta-transaction-manager/> XML configuration element.
Authors
Juergen Hoeller, Christian Dupuis
Since
2.5

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Class<?>
getBeanClass(Element
the Element that is being parsed
element
)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClass.

Determine the bean class corresponding to the supplied Element.
protected String
resolveId(Element
the element that the bean definition has been built from
element
,
AbstractBeanDefinition
the bean definition to be registered
definition
,
ParserContext
the object encapsulating the current state of the parsing process; provides access to a org.springframework.beans.factory.support.BeanDefinitionRegistry
parserContext
)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied BeanDefinition.
Inherited from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser:
doParsedoParsegetBeanClassNamegetParentNameparseInternal

Constructor Detail

JtaTransactionManagerBeanDefinitionParserback to summary
public JtaTransactionManagerBeanDefinitionParser()

Method Detail

getBeanClassback to summary
protected Class<?> getBeanClass(Element element)

Overrides org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClass.

Doc from org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser.getBeanClass.

Determine the bean class corresponding to the supplied Element.

Note that, for application classes, it is generally preferable to override getBeanClassName instead, in order to avoid a direct dependence on the bean implementation class. The BeanDefinitionParser and its NamespaceHandler can be used within an IDE plugin then, even if the application classes are not available on the plugin's classpath.

Parameters
element:Element

the Element that is being parsed

Returns:Class<?>

the Class of the bean that is being defined via parsing the supplied Element, or null if none

Annotations
@Override
resolveIdback to summary
protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)

Overrides org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Doc from org.springframework.beans.factory.xml.AbstractBeanDefinitionParser.resolveId.

Resolve the ID for the supplied BeanDefinition.

When using generation, a name is generated automatically. Otherwise, the ID is extracted from the "id" attribute, potentially with a fallback to a generated id.

Parameters
element:Element

the element that the bean definition has been built from

definition:AbstractBeanDefinition

the bean definition to be registered

parserContext:ParserContext

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

Returns:String

the resolved id

Annotations
@Override