Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractFallbackTransactionAttributeSource.FindTransactionAttribute Method

Return the transaction attribute, given this set of attributes attached to a method or class. Return null if it's not transactional.

[Visual Basic]
Protected Overridable Sub FindTransactionAttribute( _
   ByVal attributes As Attribute _
protected virtual ITransactionAttribute FindTransactionAttribute(
   Attribute[] attributes


Attributes attached to a method or class. May be null, in which case a null ITransactionAttribute will be returned.

Return Value

The ITransactionAttribute configured transaction attribute, or null if none was found.


Protected rather than private as subclasses may want to customize how this is done: for example, returning a ITransactionAttribute affected by the values of other attributes. This implementation takes into account RollbackRuleAttributes, if the TransactionAttribute is a RuleBasedTransactionAttribute.

See Also

AbstractFallbackTransactionAttributeSource Class | Spring.Transaction.Interceptor Namespace