spring-framework / org.springframework.transaction.support / SimpleTransactionScope / <init>

<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.

Author
Juergen Hoeller

Since
4.2

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