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