AVMNodeService now points at AVMLockingAwareService.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6023 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-06-19 19:03:10 +00:00
parent d8050806af
commit 63680c700f
5 changed files with 30 additions and 21 deletions

View File

@@ -49,12 +49,15 @@ import org.alfresco.service.cmr.repository.ContentWriter;
import org.alfresco.service.cmr.security.AuthenticationService;
import org.alfresco.service.namespace.QName;
import org.alfresco.util.Pair;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/**
* An AVMLockingService aware implemantation of AVMService.
* @author britt
*/
public class AVMLockingAwareService implements AVMService
public class AVMLockingAwareService implements AVMService, ApplicationContextAware
{
private AVMService fService;
@@ -62,25 +65,27 @@ public class AVMLockingAwareService implements AVMService
private AuthenticationService fAuthenticationService;
private ApplicationContext fContext;
public AVMLockingAwareService()
{
}
public void setAvmService(AVMService service)
/* (non-Javadoc)
* @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)
*/
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
{
fService = service;
fContext = applicationContext;
}
public void setAvmLockingService(AVMLockingService service)
public void init()
{
fLockingService = service;
fService = (AVMService)fContext.getBean("avmService");
fLockingService = (AVMLockingService)fContext.getBean("avmLockingService");
fAuthenticationService = (AuthenticationService)fContext.getBean("authenticationService");
}
public void setAuthenticationService(AuthenticationService service)
{
fAuthenticationService = service;
}
/* (non-Javadoc)
* @see org.alfresco.service.cmr.avm.AVMService#addAspect(java.lang.String, org.alfresco.service.namespace.QName)
*/