Remove use of public services from filesystem node monitor.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10316 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2008-08-12 10:23:56 +00:00
parent dda0c7ea51
commit 90fe218266
5 changed files with 198 additions and 29 deletions

View File

@@ -121,7 +121,9 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
private AuthenticationComponent authComponent;
private AuthenticationService authService;
private PolicyComponent policyComponent;
// Node monitor factory
private NodeMonitorFactory m_nodeMonitorFactory;
// Lock manager
@@ -223,15 +225,6 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
return this.permissionService;
}
/**
* Return the policy component
*
* @return PolicyComponent
*/
public final PolicyComponent getPolicyComponent() {
return this.policyComponent;
}
/**
* @param contentService the content service
*/
@@ -313,12 +306,12 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
}
/**
* Set the policy component
* Set the node monitor factory
*
* @param policyComponent PolicyComponent
* @param nodeMonitorFactory NodeMonitorFactory
*/
public void setPolicyComponent(PolicyComponent policyComponent) {
this.policyComponent = policyComponent;
public void setNodeMonitorFactory(NodeMonitorFactory nodeMonitorFactory) {
m_nodeMonitorFactory = nodeMonitorFactory;
}
/**
@@ -548,11 +541,12 @@ public class ContentDiskDriver extends AlfrescoDiskDriver implements DiskInterfa
// Install the node service monitor
if ( cfg.getChild("disableNodeMonitor") == null) {
if ( cfg.getChild("disableNodeMonitor") == null && m_nodeMonitorFactory != null) {
// Create the node monitor
context.createNodeMonitor( this);
NodeMonitor nodeMonitor = m_nodeMonitorFactory.createNodeMonitor( this, context);
context.setNodeMonitor( nodeMonitor);
}
// Return the context for this shared filesystem