Class Library
java.lang.Object
io.netty.internal.tcnative.Library
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanprivate static intprivate static Stringprivate static StringThe shading prefix added to this class's full name.static booleanstatic booleaninitialize(String libraryName, String engine) Setup native library.private static booleanprivate static voidloadLibrary(String libraryName) private static voidtryLoadClass(ClassLoader classLoader, String className) private static voidtryLoadClasses(ClassLoader classLoader, Class<?>... classes) Preload the given classes and so ensure theClassLoaderhas these loaded after this method call.
-
Field Details
-
NAMES
-
PROVIDED
- See Also:
-
_instance
-
-
Constructor Details
-
Library
-
Library
-
-
Method Details
-
tryLoadClasses
Preload the given classes and so ensure theClassLoaderhas these loaded after this method call.- Parameters:
classLoader- theClassLoaderclasses- the classes to load.
-
tryLoadClass
-
loadLibrary
-
calculatePackagePrefix
The shading prefix added to this class's full name.- Throws:
UnsatisfiedLinkError- if the shader used something other than a prefix
-
initialize0
private static boolean initialize0() -
aprHasThreads
private static boolean aprHasThreads() -
aprMajorVersion
private static int aprMajorVersion() -
aprVersionString
-
initialize
- Returns:
trueif initialization was successful- Throws:
Exception- if an error happens during initialization
-
initialize
Setup native library. This is the first method that must be called!- Parameters:
libraryName- the name of the library to loadengine- Support for external a Crypto Device ("engine"), usually- Returns:
trueif initialization was successful- Throws:
Exception- if an error happens during initialization
-