org.kuali.rice.kns.util.spring
Class AnnotationAndNameMatchingTransactionAttributeSource

java.lang.Object
  extended by org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
      extended by 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

Field Summary
private  org.springframework.transaction.annotation.AnnotationTransactionAttributeSource annotationTransactionAttributeSource
           
private  Integer transactionTimeout
           
 
Fields inherited from class org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource
logger
 
Constructor Summary
AnnotationAndNameMatchingTransactionAttributeSource()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

annotationTransactionAttributeSource

private org.springframework.transaction.annotation.AnnotationTransactionAttributeSource annotationTransactionAttributeSource

transactionTimeout

private Integer transactionTimeout
Constructor Detail

AnnotationAndNameMatchingTransactionAttributeSource

public AnnotationAndNameMatchingTransactionAttributeSource()
Method Detail

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.