org.springframework.transaction.interceptor
Class AttributesTransactionAttributeSource

java.lang.Object
  extended byorg.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource
      extended byorg.springframework.transaction.interceptor.AttributesTransactionAttributeSource
All Implemented Interfaces:
TransactionAttributeSource

public class AttributesTransactionAttributeSource
extends AbstractFallbackTransactionAttributeSource

Implementation of TransactionAttributeSource that uses attributes from an Attributes implementation.

Author:
Rod Johnson
See Also:
Attributes, AbstractFallbackTransactionAttributeSource

Field Summary
 
Fields inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource
logger
 
Constructor Summary
AttributesTransactionAttributeSource(Attributes attributes)
           
 
Method Summary
protected  Collection findAllAttributes(Class clazz)
          Subclasses should implement this to return all attributes for this class.
protected  Collection findAllAttributes(Method m)
          Subclasses should implement this to return all attributes for this method.
 
Methods inherited from class org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource
findTransactionAttribute, getTransactionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributesTransactionAttributeSource

public AttributesTransactionAttributeSource(Attributes attributes)
Method Detail

findAllAttributes

protected Collection findAllAttributes(Class clazz)
Description copied from class: AbstractFallbackTransactionAttributeSource
Subclasses should implement this to return all attributes for this class.

Specified by:
findAllAttributes in class AbstractFallbackTransactionAttributeSource
Parameters:
clazz - class to retrieve attributes for
Returns:
all attributes associated with this class. May return null.
See Also:
AbstractFallbackTransactionAttributeSource.findAllAttributes(java.lang.Class)

findAllAttributes

protected Collection findAllAttributes(Method m)
Description copied from class: AbstractFallbackTransactionAttributeSource
Subclasses should implement this to return all attributes for this method. We need all because of the need to analyze rollback rules.

Specified by:
findAllAttributes in class AbstractFallbackTransactionAttributeSource
Parameters:
m - method to retrieve attributes for
Returns:
all attributes associated with this method. May return null.
See Also:
AbstractFallbackTransactionAttributeSource.findAllAttributes(java.lang.reflect.Method)


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