Class NativeLibraryLoader
java.lang.Object
io.netty.util.internal.NativeLibraryLoader
Helper class to load JNI resources.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidload(String originalName, ClassLoader loader) Load the given library with the specifiedClassLoaderstatic voidloadFirstAvailable(ClassLoader loader, String... names) Loads the first available library in the collection with the specifiedClassLoader.
-
Method Details
-
loadFirstAvailable
Loads the first available library in the collection with the specifiedClassLoader.- Throws:
IllegalArgumentException- if none of the given libraries load successfully.
-
load
Load the given library with the specifiedClassLoader
-