Skip to content

Commit 6a7f964

Browse files
committed
change interface to return a list of sidebar service impls
1 parent 3d94f24 commit 6a7f964

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

src/main/java/org/cryptomator/integrations/sidebar/SidebarService.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.jetbrains.annotations.NotNull;
66

77
import java.nio.file.Path;
8-
import java.util.Optional;
8+
import java.util.stream.Stream;
99

1010
/**
1111
* Service for integrating a given path into the sidebar/quick access bar of a filemanager.
@@ -40,7 +40,12 @@ interface SidebarEntry {
4040

4141
}
4242

43-
static Optional<SidebarService> get() {
44-
return IntegrationsLoader.load(SidebarService.class);
43+
/**
44+
* 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);
4550
}
4651
}

0 commit comments

Comments
 (0)