org.kuali.rice.kns.util.spring
Class AnnotationAndNameMatchingTransactionAttributeSource
java.lang.Object
org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
org.kuali.rice.kns.util.spring.AnnotationAndNameMatchingTransactionAttributeSource
- All Implemented Interfaces:
- Serializable, org.springframework.transaction.interceptor.TransactionAttributeSource
public class AnnotationAndNameMatchingTransactionAttributeSource
- extends org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
Classes are not considered for name matching, if they do not have the specified annotation on the class or method. However, the
name matching takes precendence, if they do.
- See Also:
- Serialized Form
Fields inherited from class org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource |
logger |
Method Summary |
org.springframework.transaction.interceptor.TransactionAttribute |
getTransactionAttribute(Method method,
Class targetClass)
|
void |
setAnnotationTransactionAttributeSource(org.springframework.transaction.annotation.AnnotationTransactionAttributeSource annotationTransactionAttributeSource)
Sets the annotationTransactionAttributeSource attribute value. |
protected void |
setTimeout(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
If the TransactionAttribute has a setTimeout() method, then this method will invoke it and pass the configured
transaction timeout. |
void |
setTransactionTimeout(Integer transactionTimeout)
|
Methods inherited from class org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource |
addTransactionalMethod, equals, hashCode, isMatch, setNameMap, setProperties, toString |
annotationTransactionAttributeSource
private org.springframework.transaction.annotation.AnnotationTransactionAttributeSource annotationTransactionAttributeSource
transactionTimeout
private Integer transactionTimeout
AnnotationAndNameMatchingTransactionAttributeSource
public AnnotationAndNameMatchingTransactionAttributeSource()
getTransactionAttribute
public org.springframework.transaction.interceptor.TransactionAttribute getTransactionAttribute(Method method,
Class targetClass)
- Specified by:
getTransactionAttribute
in interface org.springframework.transaction.interceptor.TransactionAttributeSource
- Overrides:
getTransactionAttribute
in class org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
- See Also:
NameMatchTransactionAttributeSource.getTransactionAttribute(java.lang.reflect.Method,
java.lang.Class)
setAnnotationTransactionAttributeSource
public void setAnnotationTransactionAttributeSource(org.springframework.transaction.annotation.AnnotationTransactionAttributeSource annotationTransactionAttributeSource)
- Sets the annotationTransactionAttributeSource attribute value.
- Parameters:
annotationTransactionAttributeSource
- The annotationTransactionAttributeSource to set.
setTransactionTimeout
public void setTransactionTimeout(Integer transactionTimeout)
setTimeout
protected void setTimeout(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
- If the TransactionAttribute has a setTimeout() method, then this method will invoke it and pass the configured
transaction timeout. This is to allow for proper setting of the transaction timeout on a JTA transaction.
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.