Enum Class SurroundingTransactionDetectorMethodInterceptor

java.lang.Object
java.lang.Enum<SurroundingTransactionDetectorMethodInterceptor>
org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor
All Implemented Interfaces:
Serializable, Comparable<SurroundingTransactionDetectorMethodInterceptor>, Constable, Advice, Interceptor, MethodInterceptor

public enum SurroundingTransactionDetectorMethodInterceptor extends Enum<SurroundingTransactionDetectorMethodInterceptor> implements MethodInterceptor
MethodInterceptor detecting whether a transaction is already running and exposing that fact via isSurroundingTransactionActive(). Useful in case subsequent interceptors might create transactions themselves but downstream components have to find out whether there was one running before the call entered the proxy.
Since:
1.13
Author:
Oliver Gierke, Christoph Strobl