Skip to content

Commit a00a7fa

Browse files
committed
Correct naming of mount spi: MountProvider is the _service_ interface
1 parent 9d53958 commit a00a7fa

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/java/module-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import org.cryptomator.integrations.mount.MountProvider;
1+
import org.cryptomator.integrations.mount.MountService;
22
import org.cryptomator.integrations.tray.TrayMenuController;
33
import org.cryptomator.integrations.autostart.AutoStartProvider;
44
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
@@ -19,7 +19,7 @@
1919

2020
uses AutoStartProvider;
2121
uses KeychainAccessProvider;
22-
uses MountProvider;
22+
uses MountService;
2323
uses TrayIntegrationProvider;
2424
uses TrayMenuController;
2525
uses UiAppearanceProvider;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ default MountBuilder setMountpoint(Path mountPoint) {
5656
* @param mountFlags Mount flags
5757
* @return <code>this</code>
5858
* @throws UnsupportedOperationException If {@link MountFeature#MOUNT_FLAGS} is not supported
59-
* @see MountProvider#getDefaultMountFlags(String)
59+
* @see MountService#getDefaultMountFlags(String)
6060
*/
6161
@Contract("_ -> this")
6262
default MountBuilder setMountFlags(String mountFlags) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public enum MountFeature {
1414
LOOPBACK_HOST_NAME,
1515

1616
/**
17-
* The provider supports {@link MountProvider#getDefaultLoopbackPort()}
17+
* The provider supports {@link MountService#getDefaultLoopbackPort()}
1818
* and the builder requires {@link MountBuilder#setLoopbackPort(int)}.
1919
*/
2020
LOOPBACK_PORT,
2121

2222
/**
23-
* The provider supports {@link MountProvider#getDefaultMountFlags(String)}
23+
* The provider supports {@link MountService#getDefaultMountFlags(String)}
2424
* and the builder requires {@link MountBuilder#setMountFlags(String)}.
2525
*/
2626
MOUNT_FLAGS,

src/main/java/org/cryptomator/integrations/mount/MountProvider.java renamed to src/main/java/org/cryptomator/integrations/mount/MountService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
*
1414
* @since 1.2.0
1515
*/
16-
public interface MountProvider {
16+
public interface MountService {
1717

1818
/**
1919
* Loads all supported mount providers.
2020
*
2121
* @return Stream of supported MountProviders (may be empty)
2222
*/
23-
static Stream<MountProvider> get() {
24-
return IntegrationsLoader.loadAll(MountProvider.class).filter(MountProvider::isSupported);
23+
static Stream<MountService> get() {
24+
return IntegrationsLoader.loadAll(MountService.class).filter(MountService::isSupported);
2525
}
2626

2727
/**

0 commit comments

Comments
 (0)