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, TransactionProxyFactoryBean
| Modifier and Type | Field and Description |
|---|---|
| private final TransactionAttributeSourcePointcut | |
| private TransactionInterceptor |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TransactionAttributeSourceAdvisor(TransactionInterceptor
the transaction interceptor to use for this advisor interceptor)Create a new TransactionAttributeSourceAdvisor. |
| Modifier and Type | Method and Description |
|---|---|
| public Advice | getAdvice()
Implements org. Return the advice part of this aspect. |
| public Pointcut | getPointcut()
Implements org. Get the Pointcut that drives this advisor. |
| public void | |
| public void | setTransactionInterceptor(TransactionInterceptor interceptor)
Set the transaction interceptor to use for this advisor. |
| pointcut | back to summary |
|---|---|
| private final TransactionAttributeSourcePointcut pointcut | |
| transactionInterceptor | back to summary |
|---|---|
| private TransactionInterceptor transactionInterceptor
| |
| TransactionAttributeSourceAdvisor | back to summary |
|---|---|
| public TransactionAttributeSourceAdvisor() Create a new TransactionAttributeSourceAdvisor. | |
| TransactionAttributeSourceAdvisor | back to summary |
|---|---|
| public TransactionAttributeSourceAdvisor(TransactionInterceptor interceptor) Create a new TransactionAttributeSourceAdvisor.
| |
| getAdvice | back to summary |
|---|---|
| public Advice getAdvice() Implements org. Doc from org. Return the advice part of this aspect. An advice may be an interceptor, a before advice, a throws advice, etc. | |
| getPointcut | back to summary |
|---|---|
| public Pointcut getPointcut() Implements org. Doc from org. Get the Pointcut that drives this advisor.
| |
| setClassFilter | back to summary |
|---|---|
| public void setClassFilter(ClassFilter classFilter) Set the | |
| setTransactionInterceptor | back to summary |
|---|---|
| public void setTransactionInterceptor(TransactionInterceptor interceptor) Set the transaction interceptor to use for this advisor. | |