Class DomainTransactionInterceptor
- java.lang.Object
-
- org.springframework.transaction.interceptor.TransactionAspectSupport
-
- org.springframework.transaction.interceptor.TransactionInterceptor
-
- org.apache.syncope.core.persistence.jpa.spring.DomainTransactionInterceptor
-
- All Implemented Interfaces:
Serializable
,Advice
,Interceptor
,MethodInterceptor
,Aware
,BeanFactoryAware
,InitializingBean
public class DomainTransactionInterceptor extends TransactionInterceptor
Extends the standardTransactionInterceptor
by dynamically setting the appropriateTransactionAttributeSource
qualifier according to the authentication domain of the caller - retrieved viaAuthContextUtils.getDomain()
.- See Also:
DomainTransactionAnnotationParser
, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport
TransactionAspectSupport.CoroutinesInvocationCallback, TransactionAspectSupport.InvocationCallback, TransactionAspectSupport.TransactionInfo
-
-
Field Summary
-
Fields inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport
logger
-
-
Constructor Summary
Constructors Constructor Description DomainTransactionInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionAttributeSource
getTransactionAttributeSource()
Object
invoke(MethodInvocation invocation)
-
Methods inherited from class org.springframework.transaction.interceptor.TransactionAspectSupport
afterPropertiesSet, cleanupTransactionInfo, clearTransactionManagerCache, commitTransactionAfterReturning, completeTransactionAfterThrowing, createTransactionIfNecessary, currentTransactionInfo, currentTransactionStatus, determineTransactionManager, getBeanFactory, getTransactionManager, getTransactionManagerBeanName, invokeWithinTransaction, methodIdentification, prepareTransactionInfo, setBeanFactory, setTransactionAttributes, setTransactionAttributeSource, setTransactionAttributeSources, setTransactionManager, setTransactionManagerBeanName
-
-
-
-
Method Detail
-
getTransactionAttributeSource
public TransactionAttributeSource getTransactionAttributeSource()
- Overrides:
getTransactionAttributeSource
in classTransactionAspectSupport
-
invoke
public Object invoke(MethodInvocation invocation) throws Throwable
- Specified by:
invoke
in interfaceMethodInterceptor
- Overrides:
invoke
in classTransactionInterceptor
- Throws:
Throwable
-
-