Skip to content

Commit

Permalink
Added methods to get loaders from JavaExtensionLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwisap committed Jul 6, 2023
1 parent f202280 commit aa4d1cb
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public JavaExtensionLoader(@NotNull File folder) {
return new TreeSet<>(this.loaders.values().stream().map(JavaExtensionClassLoader::getExtension).toList());
}

public final @NotNull Map<String, JavaExtensionClassLoader> getLoadersByName() {
return new HashMap<>(this.loaders);
}

public @NotNull Collection<JavaExtensionClassLoader> getLoaders() {
return new HashSet<>(this.loaders.values());
}

@SuppressWarnings("unchecked")
@Override
@Nullable
Expand Down

0 comments on commit aa4d1cb

Please sign in to comment.