org.springframework.transaction.PlatformTransactionManager /
org.springframework.transaction.ReactiveTransactionManager ).
Derives from the TransactionAspectSupport class which
contains the integration with Spring's underlying transaction API.
TransactionInterceptor simply calls the relevant superclass methods
such as invokeWithinTransaction in the correct order.
TransactionInterceptors are thread-safe.
TransactionProxyFactoryBean, org.springframework.aop.framework.ProxyFactoryBean , org.springframework.aop.framework.ProxyFactory
| Access | Constructor and Description |
|---|---|
| public | |
| public | TransactionInterceptor(TransactionManager
the default transaction manager to perform the actual transaction management ptm, TransactionAttributeSource the attribute source to be used to find transaction attributes tas)Create a new TransactionInterceptor. |
| public | TransactionInterceptor(PlatformTransactionManager
the default transaction manager to perform the actual transaction management ptm, TransactionAttributeSource the attribute source to be used to find transaction attributes tas)
Deprecated
as of 5.2.5, in favor of
TransactionInterceptor(TransactionManager, TransactionAttributeSource)
Create a new TransactionInterceptor. |
| public | TransactionInterceptor(PlatformTransactionManager
the default transaction manager to perform the actual transaction management ptm, Properties the transaction attributes in properties format attributes)
Deprecated
as of 5.2.5, in favor of
setTransactionAttributes(Properties)
Create a new TransactionInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(MethodInvocation
the method invocation joinpoint invocation)Implements org. Implement this method to perform extra treatments before and after the invocation. |
| private void | |
| private void |
| TransactionInterceptor | back to summary |
|---|---|
| public TransactionInterceptor() Create a new TransactionInterceptor. Transaction manager and transaction attributes still need to be set. | |
| TransactionInterceptor | back to summary |
|---|---|
| public TransactionInterceptor(TransactionManager ptm, TransactionAttributeSource tas) Create a new TransactionInterceptor.
| |
| TransactionInterceptor | back to summary |
|---|---|
| public TransactionInterceptor(PlatformTransactionManager ptm, TransactionAttributeSource tas)
Deprecated as of 5.2.5, in favor of
Create a new TransactionInterceptor.
| |
| TransactionInterceptor | back to summary |
|---|---|
| public TransactionInterceptor(PlatformTransactionManager ptm, Properties attributes)
Deprecated as of 5.2.5, in favor of Create a new TransactionInterceptor.
| |
| invoke | back to summary |
|---|---|
| public Object invoke(MethodInvocation invocation) throws Throwable Implements org. Doc from org. Implement this method to perform extra treatments before and
after the invocation. Polite implementations would certainly
like to invoke
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException | |