diff --git a/src/main/java/com/onarandombox/MultiverseCore/inject/EagerlyLoaded.java b/src/main/java/com/onarandombox/MultiverseCore/inject/EagerlyLoaded.java deleted file mode 100644 index ba4d12bf..00000000 --- a/src/main/java/com/onarandombox/MultiverseCore/inject/EagerlyLoaded.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.onarandombox.MultiverseCore.inject; - -import org.jvnet.hk2.annotations.Contract; - -/** - * Marker interface for services belonging to a plugin that should be eagerly initialized when service injection is - * set up for the owning plugin. - */ -@Contract -public interface EagerlyLoaded { } diff --git a/src/main/java/com/onarandombox/MultiverseCore/inject/PluginInjection.java b/src/main/java/com/onarandombox/MultiverseCore/inject/PluginInjection.java index ad10bb7f..638905fe 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/inject/PluginInjection.java +++ b/src/main/java/com/onarandombox/MultiverseCore/inject/PluginInjection.java @@ -83,8 +83,7 @@ public final class PluginInjection { private Try load() { return Try.runRunnable(() -> ServiceLocatorUtilities.bind(pluginServiceLocator, pluginBinder)) - .flatMap(ignored -> populatePluginServiceLocator(pluginServiceLocator, plugin)) - .andThenTry(locator -> locator.getAllServices(EagerlyLoaded.class)); + .flatMap(ignored -> populatePluginServiceLocator(pluginServiceLocator, plugin)); } @NotNull