public interface TransactionAttributeSource
TransactionInterceptor for metadata retrieval.
Implementations know how to source transaction attributes, whether from configuration, metadata attributes at source level (such as Java 5 annotations), or anywhere else.
TransactionAspectSupport.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource),
TransactionProxyFactoryBean.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource),
AnnotationTransactionAttributeSource| Modifier and Type | Method and Description |
|---|---|
TransactionAttribute |
getTransactionAttribute(Method method,
Class<?> targetClass)
Return the transaction attribute for the given method,
or
null if the method is non-transactional. |
TransactionAttribute getTransactionAttribute(Method method, Class<?> targetClass)
null if the method is non-transactional.method - the method to introspecttargetClass - the target class. May be null,
in which case the declaring class of the method must be used.null if none found