- java.lang.Object
-
- io.netty5.util.internal.NativeLibraryLoader
-
public final class NativeLibraryLoader extends Object
Helper class to load JNI resources.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
load(String originalName, ClassLoader loader)
Load the given library with the specifiedClassLoader
static void
loadFirstAvailable(ClassLoader loader, String... names)
Loads the first available library in the collection with the specifiedClassLoader
.
-
-
-
Method Detail
-
loadFirstAvailable
public static void loadFirstAvailable(ClassLoader loader, String... names)
Loads the first available library in the collection with the specifiedClassLoader
.- Throws:
IllegalArgumentException
- if none of the given libraries load successfully.
-
load
public static void load(String originalName, ClassLoader loader)
Load the given library with the specifiedClassLoader
-
-