org.springframework.transaction.interceptor
Interface TransactionAttributeSource

All Known Implementing Classes:
AttributesTransactionAttributeSource, MatchAlwaysTransactionAttributeSource, MethodMapTransactionAttributeSource, NameMatchTransactionAttributeSource

public interface TransactionAttributeSource

Interface used by TransactionInterceptor. Implementations know how to source transaction attributes, whether from configuration, metadata attributes at source level, or anywhere else.

Since:
15-Apr-2003
Version:
$Id: TransactionAttributeSource.java,v 1.4 2004/03/18 02:46:05 trisberg Exp $
Author:
Rod Johnson

Method Summary
 TransactionAttribute getTransactionAttribute(java.lang.reflect.Method method, java.lang.Class targetClass)
          Return the transaction attribute for this method.
 

Method Detail

getTransactionAttribute

public TransactionAttribute getTransactionAttribute(java.lang.reflect.Method method,
                                                    java.lang.Class targetClass)
Return the transaction attribute for this method. Return null if the method is non-transactional.

Parameters:
method - method
targetClass - target class. May be null, in which case the declaring class of the method must be used.
Returns:
TransactionAttribute transaction attribute or null.


Copyright (C) 2003-2004 The Spring Framework Project.