org.springframework.transaction.interceptor
Class TransactionInterceptor
java.lang.Object
org.springframework.transaction.interceptor.TransactionAspectSupport
org.springframework.transaction.interceptor.TransactionInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, InitializingBean, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor, java.io.Serializable
- public class TransactionInterceptor
- extends TransactionAspectSupport
- implements org.aopalliance.intercept.MethodInterceptor
AOP Alliance MethodInterceptor providing declarative transaction
management using the common Spring transaction infrastructure.
Derives from the TransactionAspectSupport class.
That class contains the necessary calls into Spring's underlying
transaction API: subclasses such as this are responsible for calling
superclass methods such as createTransactionIfNecessary()
in the correct order, in the event of normal invocation return or an exception.
TransactionInterceptors are thread-safe.
- Author:
- Rod Johnson, Juergen Hoeller
- See Also:
TransactionProxyFactoryBean
,
ProxyFactoryBean
,
TransactionAspectSupport
,
PlatformTransactionManager
,
Serialized Form
Method Summary |
java.lang.Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation)
|
Methods inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport |
afterPropertiesSet, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, doCloseTransactionAfterThrowing, doCommitTransactionAfterReturning, doFinally, getTransactionAttributeSource, getTransactionManager, methodIdentification, setTransactionAttributes, setTransactionAttributeSource, setTransactionManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionInterceptor
public TransactionInterceptor()
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation)
throws java.lang.Throwable
- Specified by:
invoke
in interface org.aopalliance.intercept.MethodInterceptor
- Throws:
java.lang.Throwable
Copyright (C) 2003-2004 The Spring Framework Project.