public class

TransactionInterceptor

extends TransactionAspectSupport
implements Serializable
java.lang.Object
   ↳ org.springframework.transaction.interceptor.TransactionAspectSupport
     ↳ org.springframework.transaction.interceptor.TransactionInterceptor

Class Overview

AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (PlatformTransactionManager).

Derives from the TransactionAspectSupport class which contains the integration with Spring's underlying transaction API. TransactionInterceptor simply calls the relevant superclass methods such as createTransactionIfNecessary(Method, Class) in the correct order.

TransactionInterceptors are thread-safe.

Summary

[Expand]
Inherited Fields
From class org.springframework.transaction.interceptor.TransactionAspectSupport
Public Constructors
TransactionInterceptor()
Create a new TransactionInterceptor.
TransactionInterceptor(PlatformTransactionManager ptm, Properties attributes)
Create a new TransactionInterceptor.
TransactionInterceptor(PlatformTransactionManager ptm, TransactionAttributeSource tas)
Create a new TransactionInterceptor.
Public Methods
Object invoke(MethodInvocation invocation)
[Expand]
Inherited Methods
From class org.springframework.transaction.interceptor.TransactionAspectSupport
From class java.lang.Object
From interface org.springframework.beans.factory.BeanFactoryAware
From interface org.springframework.beans.factory.InitializingBean

Public Constructors

public TransactionInterceptor ()

Create a new TransactionInterceptor.

Transaction manager and transaction attributes still need to be set.

public TransactionInterceptor (PlatformTransactionManager ptm, Properties attributes)

Create a new TransactionInterceptor.

Parameters
ptm the transaction manager to perform the actual transaction management
attributes the transaction attributes in properties format

public TransactionInterceptor (PlatformTransactionManager ptm, TransactionAttributeSource tas)

Create a new TransactionInterceptor.

Parameters
ptm the transaction manager to perform the actual transaction management
tas the attribute source to be used to find transaction attributes

Public Methods

public Object invoke (MethodInvocation invocation)

Throws
Throwable