Skip to content

Commit d3469bf

Browse files
committed
add capability FILE_SYSTEM_NAME
1 parent fdc2ba7 commit d3469bf

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

src/main/java/org/cryptomator/integrations/mount/MountBuilder.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@
1313
*/
1414
public interface MountBuilder {
1515

16+
/**
17+
* Sets the file system name.
18+
*
19+
* @param fileSystemName file system name
20+
* @return <code>this</code>
21+
* @throws UnsupportedOperationException If {@link MountCapability#FILE_SYSTEM_NAME} is not supported
22+
*/
23+
@Contract("_ -> this")
24+
default MountBuilder setFileSystemName(String fileSystemName) {
25+
throw new UnsupportedOperationException();
26+
}
27+
1628
/**
1729
* Use the given host name as the loopback address.
1830
*

src/main/java/org/cryptomator/integrations/mount/MountCapability.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@
88
* This may be used to show or hide different configuration options depending on the chosen mount provider.
99
*/
1010
public enum MountCapability {
11+
/**
12+
* The builder supports {@link MountBuilder#setFileSystemName(String)}.
13+
*/
14+
FILE_SYSTEM_NAME,
15+
1116
/**
1217
* The builder supports {@link MountBuilder#setLoopbackHostName(String)}.
1318
*/
1419
LOOPBACK_HOST_NAME,
1520

1621
/**
17-
* The provider supports {@link MountService#getDefaultLoopbackPort()}
22+
* The service provider supports {@link MountService#getDefaultLoopbackPort()}
1823
* and the builder requires {@link MountBuilder#setLoopbackPort(int)}.
1924
*/
2025
LOOPBACK_PORT,

0 commit comments

Comments
 (0)