org.springframework.transaction.interceptor
Class AttributesTransactionAttributeSource
java.lang.Object
org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributesTransactionAttributeSource
public AttributesTransactionAttributeSource(Attributes attributes)
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.