com.interface21.transaction.interceptor
Class MapTransactionAttributeSource
java.lang.Object
|
+--com.interface21.transaction.interceptor.MapTransactionAttributeSource
- All Implemented Interfaces:
- TransactionAttributeSource
- public class MapTransactionAttributeSource
- extends java.lang.Object
- implements TransactionAttributeSource
Simple implementation of TransactionAttributeSource that
allows attributes to be stored in a map.
- Since:
- 24-Apr-2003
- Version:
- $Id: MapTransactionAttributeSource.java,v 1.1 2003/06/13 13:40:38 jhoeller Exp $
- Author:
- Rod Johnson
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
protected java.util.Map |
methodMap
Map from method to TransactionAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.apache.commons.logging.Log logger
methodMap
protected java.util.Map methodMap
- Map from method to TransactionAttribute
MapTransactionAttributeSource
public MapTransactionAttributeSource()
addTransactionalMethod
public void addTransactionalMethod(java.lang.reflect.Method m,
TransactionAttribute ta)
- Set an attribute for a transactional method
- Parameters:
m - methodta - attribute associated with the method
getTransactionAttribute
public TransactionAttribute getTransactionAttribute(org.aopalliance.MethodInvocation invocation)
- 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:
TransactionAttributeSource.getTransactionAttribute(org.aopalliance.MethodInvocation)
Rod Johnson and Spring contributors 2001-2003.