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 java.lang.Object implements org.aopalliance.intercept.MethodInterceptor, org.springframework.beans.factory.InitializingBeanUtility 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 Constructor Description TransactionalDaoInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()Checks that required values have been injectedjava.lang.Objectinvoke(org.aopalliance.intercept.MethodInvocation invocation)voidsetDaoService(TransactionalDao daoService)
-
-
-
Method Detail
-
setDaoService
public void setDaoService(TransactionalDao daoService)
- Parameters:
daoService- the NodeDaoService to register
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.ExceptionChecks that required values have been injected- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
invoke
public java.lang.Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws java.lang.Throwable- Specified by:
invokein interfaceorg.aopalliance.intercept.MethodInterceptor- Throws:
java.lang.Throwable
-
-