Class TransactionAttributeSourceAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor
- All Implemented Interfaces:
- Serializable,- Advisor,- PointcutAdvisor,- Ordered
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:
- 
Field SummaryFields inherited from interface org.springframework.aop.AdvisorEMPTY_ADVICEFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructorsConstructorDescriptionCreate a new TransactionAttributeSourceAdvisor.TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor) Create a new TransactionAttributeSourceAdvisor.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the advice part of this aspect.Get the Pointcut that drives this advisor.voidsetClassFilter(ClassFilter classFilter) Set theClassFilterto use for this pointcut.voidsetTransactionInterceptor(TransactionInterceptor interceptor) Set the transaction interceptor to use for this advisor.Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisorequals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.aop.AdvisorisPerInstance
- 
Constructor Details- 
TransactionAttributeSourceAdvisorpublic TransactionAttributeSourceAdvisor()Create a new TransactionAttributeSourceAdvisor.
- 
TransactionAttributeSourceAdvisorCreate a new TransactionAttributeSourceAdvisor.- Parameters:
- interceptor- the transaction interceptor to use for this advisor
 
 
- 
- 
Method Details- 
setTransactionInterceptorSet the transaction interceptor to use for this advisor.
- 
setClassFilterSet theClassFilterto use for this pointcut. Default isClassFilter.TRUE.
- 
getAdvice
- 
getPointcutDescription copied from interface:PointcutAdvisorGet the Pointcut that drives this advisor.
 
-