public final class

TxAnnotationDriven

extends AbstractFeatureSpecification
java.lang.Object
   ↳ org.springframework.context.config.AbstractFeatureSpecification
     ↳ org.springframework.transaction.config.TxAnnotationDriven

Class Overview

TODO SPR-7420: document

Summary

[Expand]
Inherited Fields
From class org.springframework.context.config.AbstractFeatureSpecification
Public Constructors
TxAnnotationDriven()
Create a TxAnnotationDriven specification assumes the presence of a PlatformTransactionManager bean named {@value #DEFAULT_TRANSACTION_MANAGER_BEAN_NAME}.
TxAnnotationDriven(String txManagerBeanName)
Create a new TxAnnotationDriven specification that will use the specified transaction manager bean name.
TxAnnotationDriven(PlatformTransactionManager txManager)
Create a new TxAnnotationDriven specification that will use the specified transaction manager.
Public Methods
TxAnnotationDriven mode(AdviceMode mode)
Indicate how transactional advice should be applied.
TxAnnotationDriven order(String order)
Indicate the ordering of the execution of the transaction advisor when multiple advice executes at a specific joinpoint.
TxAnnotationDriven order(int order)
Indicate the ordering of the execution of the transaction advisor when multiple advice executes at a specific joinpoint.
TxAnnotationDriven proxyTargetClass(Boolean proxyTargetClass)
Indicate whether class-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.
Protected Methods
void doValidate(ProblemCollector problems)
[Expand]
Inherited Methods
From class org.springframework.context.config.AbstractFeatureSpecification
From class java.lang.Object
From interface org.springframework.context.config.FeatureSpecification
From interface org.springframework.context.config.SourceAwareSpecification

Public Constructors

public TxAnnotationDriven ()

Create a TxAnnotationDriven specification assumes the presence of a PlatformTransactionManager bean named {@value #DEFAULT_TRANSACTION_MANAGER_BEAN_NAME}.

See the alternate constructors defined here if your transaction manager does not follow this default naming or you wish to refer to it by bean instance rather than by bean name.

public TxAnnotationDriven (String txManagerBeanName)

Create a new TxAnnotationDriven specification that will use the specified transaction manager bean name.

Parameters
txManagerBeanName name of PlatformTransactionManager bean or a ${placeholder} or SpEL #{expression} resolving to bean name. If null, falls back to default value of {@value #DEFAULT_TRANSACTION_MANAGER_BEAN_NAME}.

public TxAnnotationDriven (PlatformTransactionManager txManager)

Create a new TxAnnotationDriven specification that will use the specified transaction manager.

Parameters
txManager the PlatformTransactionManager bean to use. Must not be null.

Public Methods

public TxAnnotationDriven mode (AdviceMode mode)

Indicate how transactional advice should be applied.

See Also

public TxAnnotationDriven order (String order)

Indicate the ordering of the execution of the transaction advisor when multiple advice executes at a specific joinpoint. The default is null, indicating that default ordering should be used.

public TxAnnotationDriven order (int order)

Indicate the ordering of the execution of the transaction advisor when multiple advice executes at a specific joinpoint. The default is null, indicating that default ordering should be used.

public TxAnnotationDriven proxyTargetClass (Boolean proxyTargetClass)

Indicate whether class-based (CGLIB) proxies are to be created as opposed to standard Java interface-based proxies.

Note: Class-based proxies require the @Transactional annotation to be defined on the concrete class. Annotations in interfaces will not work in that case (they will rather only work with interface-based proxies)!

Protected Methods

protected void doValidate (ProblemCollector problems)