spring-framework / org.springframework.transaction.interceptor / MatchAlwaysTransactionAttributeSource

MatchAlwaysTransactionAttributeSource

open class MatchAlwaysTransactionAttributeSource : TransactionAttributeSource, Serializable

Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it. The TransactionAttribute may be specified, but will otherwise default to PROPAGATION_REQUIRED. This may be used in the cases where you want to use the same transaction attribute with all methods being handled by a transaction interceptor.

Author
Colin Sampaleanu

Since
15.10.2003

See Also
org.springframework.transaction.interceptor.TransactionProxyFactoryBeanorg.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator

Constructors

<init>

MatchAlwaysTransactionAttributeSource()

Very simple implementation of TransactionAttributeSource which will always return the same TransactionAttribute for all methods fed to it. The TransactionAttribute may be specified, but will otherwise default to PROPAGATION_REQUIRED. This may be used in the cases where you want to use the same transaction attribute with all methods being handled by a transaction interceptor.

Functions

equals

open fun equals(other: Any?): Boolean

getTransactionAttribute

open fun getTransactionAttribute(method: Method, targetClass: Class<*>): TransactionAttribute

hashCode

open fun hashCode(): Int

setTransactionAttribute

open fun setTransactionAttribute(transactionAttribute: TransactionAttribute): Unit

Allows a transaction attribute to be specified, using the String form, for example, "PROPAGATION_REQUIRED".

toString

open fun toString(): String