|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.AbstractPointcutAdvisor org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor
public class TransactionAttributeSourceAdvisor
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.
setTransactionInterceptor(org.springframework.transaction.interceptor.TransactionInterceptor)
,
TransactionProxyFactoryBean
,
Serialized FormField Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
TransactionAttributeSourceAdvisor()
Create a new TransactionAttributeSourceAdvisor. |
|
TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor)
Create a new TransactionAttributeSourceAdvisor. |
Method Summary | |
---|---|
Advice |
getAdvice()
Return the advice part of this aspect. |
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor. |
void |
setClassFilter(ClassFilter classFilter)
Set the ClassFilter to use for this pointcut. |
void |
setTransactionInterceptor(TransactionInterceptor interceptor)
Set the transaction interceptor to use for this advisor. |
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor |
---|
equals, getOrder, hashCode, isPerInstance, setOrder |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionAttributeSourceAdvisor()
public TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor)
interceptor
- the transaction interceptor to use for this advisorMethod Detail |
---|
public void setTransactionInterceptor(TransactionInterceptor interceptor)
public void setClassFilter(ClassFilter classFilter)
ClassFilter
to use for this pointcut.
Default is ClassFilter.TRUE
.
public Advice getAdvice()
Advisor
MethodInterceptor
,
BeforeAdvice
,
ThrowsAdvice
,
AfterReturningAdvice
public Pointcut getPointcut()
PointcutAdvisor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |