spring-framework / org.springframework.transaction.interceptor / NameMatchTransactionAttributeSource / addTransactionalMethod

addTransactionalMethod

open fun addTransactionalMethod(methodName: String, attr: TransactionAttribute): Unit

Add an attribute for a transactional method.

Method names can be exact matches, or of the pattern "xxx*", "*xxx" or "*xxx*" for matching multiple methods.

Parameters

methodName - the name of the method

attr - attribute associated with the method