spring-framework / org.springframework.transaction.interceptor / TransactionAttributeSourceAdvisor

TransactionAttributeSourceAdvisor

open class TransactionAttributeSourceAdvisor : AbstractPointcutAdvisor

Advisor driven by a TransactionAttributeSource, used to include a TransactionInterceptor only for methods that are transactional.

Because the AOP framework caches advice calculations, this is normally faster than just letting the TransactionInterceptor run and find out itself that it has no work to do.

Author
Rod Johnson

Author
Juergen Hoeller

See Also
#setTransactionInterceptorTransactionProxyFactoryBean

Constructors

<init>

TransactionAttributeSourceAdvisor()
TransactionAttributeSourceAdvisor(interceptor: TransactionInterceptor)

Create a new TransactionAttributeSourceAdvisor.

Functions

getAdvice

open fun getAdvice(): Advice

getPointcut

open fun getPointcut(): Pointcut

setClassFilter

open fun setClassFilter(classFilter: ClassFilter): Unit

Set the ClassFilter to use for this pointcut. Default is ClassFilter#TRUE.

setTransactionInterceptor

open fun setTransactionInterceptor(interceptor: TransactionInterceptor): Unit

Set the transaction interceptor to use for this advisor.