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

addTransactionalMethod

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

Add an attribute for a transactional method.

Method names can end or start with "*" for matching multiple methods.

Parameters

name - class and method name, separated by a dot

attr - attribute associated with the method

Exceptions

IllegalArgumentException - in case of an invalid name

open fun addTransactionalMethod(clazz: Class<*>, mappedName: String, attr: TransactionAttribute): Unit

Add an attribute for a transactional method. Method names can end or start with "*" for matching multiple methods.

Parameters

clazz - target interface or class

mappedName - mapped method name

attr - attribute associated with the method

open fun addTransactionalMethod(method: Method, attr: TransactionAttribute): Unit

Add an attribute for a transactional method.

Parameters

method - the method

attr - attribute associated with the method