mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 12:05:14 +01:00
Remove EagerlyLoaded.
This commit is contained in:
parent
16db616546
commit
75998ae2c3
@ -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 { }
|
|
@ -83,8 +83,7 @@ public final class PluginInjection {
|
|||||||
|
|
||||||
private Try<ServiceLocator> load() {
|
private Try<ServiceLocator> load() {
|
||||||
return Try.runRunnable(() -> ServiceLocatorUtilities.bind(pluginServiceLocator, pluginBinder))
|
return Try.runRunnable(() -> ServiceLocatorUtilities.bind(pluginServiceLocator, pluginBinder))
|
||||||
.flatMap(ignored -> populatePluginServiceLocator(pluginServiceLocator, plugin))
|
.flatMap(ignored -> populatePluginServiceLocator(pluginServiceLocator, plugin));
|
||||||
.andThenTry(locator -> locator.getAllServices(EagerlyLoaded.class));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
Loading…
Reference in New Issue
Block a user