com.interface21.transaction.interceptor
Class AttributeRegistryTransactionAttributeSource

java.lang.Object
  |
  +--com.interface21.transaction.interceptor.AttributeRegistryTransactionAttributeSource
All Implemented Interfaces:
TransactionAttributeSource

public class AttributeRegistryTransactionAttributeSource
extends java.lang.Object
implements TransactionAttributeSource

Implementation of TransactionAttributeSource that uses attributes from the AttributeRegistry.

Since:
15-Apr-2003
Version:
$Revision: 1.1 $
Author:
Rod Johnson

Constructor Summary
AttributeRegistryTransactionAttributeSource()
           
 
Method Summary
protected  TransactionAttribute findTransactionAttribute(org.aopalliance.MethodInvocation invocation)
          Return the transaction attribute for this invocation.
 TransactionAttribute getTransactionAttribute(org.aopalliance.MethodInvocation mi)
          Return the transaction attribute for this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeRegistryTransactionAttributeSource

public AttributeRegistryTransactionAttributeSource()
Method Detail

getTransactionAttribute

public TransactionAttribute getTransactionAttribute(org.aopalliance.MethodInvocation mi)
Description copied from interface: TransactionAttributeSource
Return the transaction attribute for this method. Return null if the method is non-transactional.
Specified by:
getTransactionAttribute in interface TransactionAttributeSource
See Also:
com.interface21.transaction.interceptor.TransactionAttributeSource#getTransactionAttribute(java.lang.Class, java.lang.reflect.Method)

findTransactionAttribute

protected TransactionAttribute findTransactionAttribute(org.aopalliance.MethodInvocation invocation)
Return the transaction attribute for this invocation. Protected rather than private as subclasses may want to customize how this is done: for example, returning a TransactionAttribute affected by the values of other attributes. Return null if its not transactional. TODO refactor into Attrib4j-specific class
Parameters:
invocation -  
Returns:
TransactionAttribute


Rod Johnson and Spring contributors 2001-2003.