Skip to content

Commit d3f9a24

Browse files
committed
Revert "add common service interface"
This reverts commit ce77d63.
1 parent 53f7b57 commit d3f9a24

2 files changed

Lines changed: 9 additions & 23 deletions

File tree

src/main/java/org/cryptomator/integrations/common/IntegrationService.java

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/main/java/org/cryptomator/integrations/revealpaths/RevealPathsService.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
package org.cryptomator.integrations.revealpaths;
22

3-
import org.cryptomator.integrations.common.IntegrationService;
43
import org.cryptomator.integrations.common.IntegrationsLoader;
54

65
import java.nio.file.NoSuchFileException;
76
import java.nio.file.Path;
8-
import java.util.List;
97
import java.util.stream.Stream;
108

11-
public interface RevealPathsService extends IntegrationService {
9+
public interface RevealPathsService {
1210

1311
/**
1412
* Loads all supported service implementations.
@@ -29,4 +27,12 @@ static Stream<RevealPathsService> get() {
2927
//TODO: Throw IllegalArgumenException if p.getParent() == null?
3028
void reveal(Path p) throws RevealFailedException, NoSuchFileException;
3129

30+
/**
31+
* Indicates, if this provider can be used.
32+
*
33+
* @return true, if this provider is supported in the current OS environment
34+
* @implSpec This check needs to return fast and in constant time
35+
*/
36+
boolean isSupported();
37+
3238
}

0 commit comments

Comments
 (0)