| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interceptor providing declarative transaction management using the common Spring transaction infrastructure. TransactionInterceptors are thread-safe.
Uses the Strategy design pattern. A PlatformTransactionManager implementation will perform the actual transaction management.
This class could set JTA as default transaction manager as that implementation does not need any specific configuration. JTA is not the default though to avoid unnecessary dependencies.
| Constructor Summary | |
TransactionInterceptor()Create a new TransactionInterceptor. | |
| Method Summary | |
void | afterPropertiesSet() |
static TransactionStatus | currentTransactionStatus()Return the transaction status of the current method invocation. |
TransactionAttributeSource | getTransactionAttributeSource()Return the transaction attribute source. |
PlatformTransactionManager | getTransactionManager()Return the transaction manager. |
final Object | invoke(MethodInvocation invocation) |
void | setTransactionAttributeSource(TransactionAttributeSource transactionAttributeSource)Set the transaction attribute source which is used to find transaction attributes. |
void | setTransactionManager(PlatformTransactionManager transactionManager)Set the transaction manager. |
| Constructor Detail |
public TransactionInterceptor()
| Method Detail |
public void afterPropertiesSet()
public static TransactionStatus currentTransactionStatus()
throws AspectException
public TransactionAttributeSource getTransactionAttributeSource()
public PlatformTransactionManager getTransactionManager()
public final Object invoke(MethodInvocation invocation)
throws java.lang.Throwable
public void setTransactionAttributeSource(TransactionAttributeSource transactionAttributeSource)
public void setTransactionManager(PlatformTransactionManager transactionManager)
| Association Links |
to Class org.springframework.transaction.PlatformTransactionManager
to Class org.springframework.transaction.interceptor.TransactionAttributeSource
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||