Class TransactionHandleMessageAdvice
java.lang.Object
org.springframework.transaction.interceptor.TransactionAspectSupport
org.springframework.transaction.interceptor.TransactionInterceptor
org.springframework.integration.transaction.TransactionHandleMessageAdvice
- All Implemented Interfaces:
- Serializable,- Advice,- Interceptor,- MethodInterceptor,- Aware,- BeanFactoryAware,- InitializingBean,- HandleMessageAdvice
public class TransactionHandleMessageAdvice
extends TransactionInterceptor
implements HandleMessageAdvice
A 
TransactionInterceptor extension with HandleMessageAdvice marker.
 
 When this Advice
 is used from the request-handler-advice-chain, it is applied
 to the MessageHandler.handleMessage(org.springframework.messaging.Message<?>)
 (not to the
 AbstractReplyProducingMessageHandler.RequestHandler.handleRequestMessage(org.springframework.messaging.Message<?>)),
 therefore the entire downstream process is wrapped to the transaction.
 
 In any other cases it is operated as a regular TransactionInterceptor.
- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.transaction.interceptor.TransactionAspectSupportTransactionAspectSupport.InvocationCallback, TransactionAspectSupport.TransactionInfo
- 
Field SummaryFields inherited from class org.springframework.transaction.interceptor.TransactionAspectSupportlogger
- 
Constructor SummaryConstructorsConstructorDescriptionTransactionHandleMessageAdvice(TransactionManager transactionManager, Properties transactionAttributes) TransactionHandleMessageAdvice(TransactionManager transactionManager, TransactionAttributeSource transactionAttributeSource) 
- 
Method SummaryMethods inherited from class org.springframework.transaction.interceptor.TransactionInterceptorinvokeMethods inherited from class org.springframework.transaction.interceptor.TransactionAspectSupportafterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, determineTransactionManager, getBeanFactory, getTransactionAttributeSource, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanNameMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aopalliance.intercept.MethodInterceptorinvoke
- 
Constructor Details- 
TransactionHandleMessageAdvicepublic TransactionHandleMessageAdvice()
- 
TransactionHandleMessageAdvicepublic TransactionHandleMessageAdvice(TransactionManager transactionManager, Properties transactionAttributes) 
- 
TransactionHandleMessageAdvicepublic TransactionHandleMessageAdvice(TransactionManager transactionManager, TransactionAttributeSource transactionAttributeSource) 
 
-