Class UnsafeInjectable
java.lang.Object
io.github.slimjar.injector.loader.UnsafeInjectable
- All Implemented Interfaces:
Injectable
-
Constructor Summary
ConstructorsConstructorDescriptionUnsafeInjectable(@NotNull ArrayDeque<URL> unopenedURLs, @NotNull ArrayList<URL> pathURLs, @NotNull ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionstatic Injectablecreate(ClassLoader classLoader) @NotNull ClassLoadervoidboolean
-
Constructor Details
-
UnsafeInjectable
public UnsafeInjectable(@NotNull @NotNull ArrayDeque<URL> unopenedURLs, @NotNull @NotNull ArrayList<URL> pathURLs, @NotNull @NotNull ClassLoader classLoader)
-
-
Method Details
-
isThreadSafe
public boolean isThreadSafe()- Specified by:
isThreadSafein interfaceInjectable
-
getClassLoader
- Specified by:
getClassLoaderin interfaceInjectable
-
inject
- Specified by:
injectin interfaceInjectable- Throws:
InjectorException
-
create
@Contract("_ -> new") public static Injectable create(ClassLoader classLoader) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-