We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d94f24 commit 6a7f964Copy full SHA for 6a7f964
1 file changed
src/main/java/org/cryptomator/integrations/sidebar/SidebarService.java
@@ -5,7 +5,7 @@
5
import org.jetbrains.annotations.NotNull;
6
7
import java.nio.file.Path;
8
-import java.util.Optional;
+import java.util.stream.Stream;
9
10
/**
11
* Service for integrating a given path into the sidebar/quick access bar of a filemanager.
@@ -40,7 +40,12 @@ interface SidebarEntry {
40
41
}
42
43
- static Optional<SidebarService> get() {
44
- return IntegrationsLoader.load(SidebarService.class);
+ /**
+ * Loads all supported mount providers.
45
+ *
46
+ * @return Stream of supported MountProviders (may be empty)
47
+ */
48
+ static Stream<SidebarService> get() {
49
+ return IntegrationsLoader.loadAll(SidebarService.class);
50
51
0 commit comments