Package org.alfresco.repo.transaction
Class TransactionalDaoInterceptor
java.lang.Object
org.alfresco.repo.transaction.TransactionalDaoInterceptor
- All Implemented Interfaces:
org.aopalliance.aop.Advice,org.aopalliance.intercept.Interceptor,org.aopalliance.intercept.MethodInterceptor,org.springframework.beans.factory.InitializingBean
public class TransactionalDaoInterceptor
extends Object
implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBean
Utility class that ensures that a NodeDaoService has been registered with the current transaction.
It is designed to act as a postInterceptor on the NodeDaoService's TransactionProxyFactoryBean.
- Author:
- Derek Hulley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChecks that required values have been injectedinvoke(org.aopalliance.intercept.MethodInvocation invocation) voidsetDaoService(TransactionalDao daoService)
-
Constructor Details
-
TransactionalDaoInterceptor
public TransactionalDaoInterceptor()
-
-
Method Details
-
setDaoService
- Parameters:
daoService- the NodeDaoService to register
-
afterPropertiesSet
Checks that required values have been injected- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
invoke
- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
Throwable
-