Skip to content

Commit

Permalink
spring: add NFSServerV41Factory#setExportTable method
Browse files Browse the repository at this point in the history
deprecate NFSServerV41Factory#setExportFile in favor for new method

Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed Jun 24, 2019

Verified

This commit was signed with the committer’s verified signature.
marco-ippolito Marco Ippolito
1 parent e1f7462 commit 7705817
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions spring/src/main/java/org/dcache/nfs/v4/NFSServerV41Factory.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017 Deutsches Elektronen-Synchroton,
* Copyright (c) 2017 - 2019 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
@@ -20,6 +20,7 @@
package org.dcache.nfs.v4;

import org.dcache.nfs.ExportFile;
import org.dcache.nfs.ExportTable;
import org.dcache.nfs.v4.nlm.LockManager;
import org.dcache.nfs.vfs.VirtualFileSystem;
import org.springframework.beans.factory.FactoryBean;
@@ -62,8 +63,16 @@ public void setLockManager(LockManager nlm) {
builder.withLockManager(nlm);
}

@Deprecated
/**
* Use {@link #setExportTable}
*/
public void setExportFile(ExportFile exportFile) {
builder.withExportFile(exportFile);
builder.withExportTable(exportFile);
}

public void setExportTable(ExportTable exportTable) {
builder.withExportTable(exportTable);
}

public void setStateHandler(NFSv4StateHandler stateHandler) {

0 comments on commit 7705817

Please sign in to comment.