org.springframework.transaction.config
Class TxNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by org.springframework.transaction.config.TxNamespaceHandler
All Implemented Interfaces:
NamespaceHandler

public class TxNamespaceHandler
extends NamespaceHandlerSupport

NamespaceHandler allowing for the configuration of declarative transaction management using either XML or using annotations.

This namespace handler is the central piece of functionality in the Spring transaction management facilities and offers two approaches to declaratively manage transactions.

One approach uses transaction semantics defined in XML using the <tx:advice> elements, the other uses annotations in combination with the <tx:annotation-driven> element. Both approached are detailed to great extent in the Spring reference manual.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Field Summary
(package private) static java.lang.String DEFAULT_TRANSACTION_MANAGER_BEAN_NAME
           
(package private) static java.lang.String TRANSACTION_MANAGER_ATTRIBUTE
           
 
Constructor Summary
TxNamespaceHandler()
           
 
Method Summary
(package private) static java.lang.String getTransactionManagerName(org.w3c.dom.Element element)
           
 void init()
          Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSACTION_MANAGER_ATTRIBUTE

static final java.lang.String TRANSACTION_MANAGER_ATTRIBUTE
See Also:
Constant Field Values

DEFAULT_TRANSACTION_MANAGER_BEAN_NAME

static final java.lang.String DEFAULT_TRANSACTION_MANAGER_BEAN_NAME
See Also:
Constant Field Values
Constructor Detail

TxNamespaceHandler

public TxNamespaceHandler()
Method Detail

getTransactionManagerName

static java.lang.String getTransactionManagerName(org.w3c.dom.Element element)

init

public void init()
Description copied from interface: NamespaceHandler
Invoked by the DefaultBeanDefinitionDocumentReader after construction but before any custom elements are parsed.

See Also:
NamespaceHandlerSupport.registerBeanDefinitionParser(String, BeanDefinitionParser)