mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user