Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » transaction » interceptor » [javadoc | source]
org.springframework.transaction.interceptor
public class: TransactionInterceptor [javadoc | source]
java.lang.Object
   org.springframework.transaction.interceptor.TransactionAspectSupport
      org.springframework.transaction.interceptor.TransactionInterceptor

All Implemented Interfaces:
    org.aopalliance.intercept.MethodInterceptor, Serializable, InitializingBean

AOP Alliance MethodInterceptor for declarative transaction management using the common Spring transaction infrastructure (org.springframework.transaction.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 in the correct order.

TransactionInterceptors are thread-safe.

Fields inherited from org.springframework.transaction.interceptor.TransactionAspectSupport:
logger
Constructor:
 public TransactionInterceptor() 
 public TransactionInterceptor(PlatformTransactionManager ptm,
    Properties attributes) 
    Create a new TransactionInterceptor.
 public TransactionInterceptor(PlatformTransactionManager ptm,
    TransactionAttributeSource tas) 
    Create a new TransactionInterceptor.
Method from org.springframework.transaction.interceptor.TransactionInterceptor Summary:
invoke
Methods from org.springframework.transaction.interceptor.TransactionAspectSupport:
afterPropertiesSet,   cleanupTransactionInfo,   commitTransactionAfterReturning,   completeTransactionAfterThrowing,   createTransactionIfNecessary,   createTransactionIfNecessary,   currentTransactionInfo,   currentTransactionStatus,   getTransactionAttributeSource,   getTransactionManager,   methodIdentification,   prepareTransactionInfo,   setTransactionAttributeSource,   setTransactionAttributeSources,   setTransactionAttributes,   setTransactionManager
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.transaction.interceptor.TransactionInterceptor Detail:
 public Object invoke(MethodInvocation invocation) throws Throwable