Class TransactionAttributeSourceAdvisor

java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor
All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Ordered

public class TransactionAttributeSourceAdvisor extends 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, Juergen Hoeller
See Also:
  • Constructor Details

    • TransactionAttributeSourceAdvisor

      public TransactionAttributeSourceAdvisor()
      Create a new TransactionAttributeSourceAdvisor.
    • TransactionAttributeSourceAdvisor

      public TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor)
      Create a new TransactionAttributeSourceAdvisor.
      Parameters:
      interceptor - the transaction interceptor to use for this advisor
  • Method Details