We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ffdf0d commit 1cb4ee6Copy full SHA for 1cb4ee6
src/main/java/org/mangorage/bootstrap/Bootstrap.java
@@ -59,15 +59,15 @@ public static void main(String[] args) throws Throwable {
59
List.of(parent),
60
Thread.currentThread().getContextClassLoader()
61
);
62
+ final var moduleLayer = moduleLayerController.layer();
63
64
final Map<String, ILaunchTarget> launchTargetMap = new HashMap<>();
65
- ServiceLoader.load(ILaunchTarget.class)
66
+ ServiceLoader.load(moduleLayer, ILaunchTarget.class)
67
.stream()
68
.forEach(provider -> {
69
final var target = provider.get();
70
launchTargetMap.put(target.getId(), target);
-
71
});
72
73
// Only add if we dont have any other launch targets...
0 commit comments