Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » transaction » interceptor » [javadoc | source]
org.springframework.transaction.interceptor
public class: TransactionAttributeSourceAdvisor [javadoc | source]
java.lang.Object
   org.springframework.aop.support.AbstractPointcutAdvisor
      org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor

All Implemented Interfaces:
    Ordered, PointcutAdvisor, Serializable

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.

Constructor:
 public TransactionAttributeSourceAdvisor() 
 public TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor) 
    Create a new TransactionAttributeSourceAdvisor.
    Parameters:
    interceptor - the transaction interceptor to use for this advisor
Method from org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor Summary:
getAdvice,   getPointcut,   setClassFilter,   setTransactionInterceptor
Methods from org.springframework.aop.support.AbstractPointcutAdvisor:
equals,   getOrder,   hashCode,   isPerInstance,   setOrder
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor Detail:
 public Advice getAdvice() 
 public Pointcut getPointcut() 
 public  void setClassFilter(ClassFilter classFilter) 
 public  void setTransactionInterceptor(TransactionInterceptor interceptor) 
    Set the transaction interceptor to use for this advisor.