spring-framework / org.springframework.transaction.support / SimpleTransactionScope

SimpleTransactionScope

open class SimpleTransactionScope : Scope

A simple transaction-backed Scope implementation, delegating to TransactionSynchronizationManager's resource binding mechanism.

NOTE: Like org.springframework.context.support.SimpleThreadScope, this transaction scope is not registered by default in common contexts. Instead, you need to explicitly assign it to a scope key in your setup, either through org.springframework.beans.factory.config.ConfigurableBeanFactory#registerScope or through a org.springframework.beans.factory.config.CustomScopeConfigurer bean.

Author
Juergen Hoeller

Since
4.2

See Also
org.springframework.context.support.SimpleThreadScopeorg.springframework.beans.factory.config.ConfigurableBeanFactory#registerScopeorg.springframework.beans.factory.config.CustomScopeConfigurer

Constructors

<init>

SimpleTransactionScope()

A simple transaction-backed Scope implementation, delegating to TransactionSynchronizationManager's resource binding mechanism.

NOTE: Like org.springframework.context.support.SimpleThreadScope, this transaction scope is not registered by default in common contexts. Instead, you need to explicitly assign it to a scope key in your setup, either through org.springframework.beans.factory.config.ConfigurableBeanFactory#registerScope or through a org.springframework.beans.factory.config.CustomScopeConfigurer bean.

Functions

get

open fun get(name: String, objectFactory: ObjectFactory<*>): Any

getConversationId

open fun getConversationId(): String

registerDestructionCallback

open fun registerDestructionCallback(name: String, callback: Runnable): Unit

remove

open fun remove(name: String): Any

resolveContextualObject

open fun resolveContextualObject(key: String): Any