站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 2.1.0 API 文档英文版

TransactionAttributeSource (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版


The Spring Framework

org.springframework.transaction.interceptor
Interface TransactionAttributeSource

All Known Implementing Classes:
AbstractFallbackTransactionAttributeSource, AnnotationTransactionAttributeSource, AttributesTransactionAttributeSource, CompositeTransactionAttributeSource, 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.04.2003
Author:
Rod Johnson
See Also:
TransactionAspectSupport.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource), TransactionProxyFactoryBean.setTransactionAttributeSource(org.springframework.transaction.interceptor.TransactionAttributeSource)

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

Method Detail

getTransactionAttribute

TransactionAttribute getTransactionAttribute(Method method,
                                             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 the matching transaction attribute, or null if none found

The Spring Framework

Copyright © 2002-2007 The Spring Framework.