Package io.netty.internal.tcnative
Class Library
java.lang.Object
io.netty.internal.tcnative.Library
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
private static int
private static String
private static String
The shading prefix added to this class's full name.static boolean
static boolean
initialize
(String libraryName, String engine) Setup native library.private static boolean
private static void
loadLibrary
(String libraryName) private static void
tryLoadClass
(ClassLoader classLoader, String className) private static void
tryLoadClasses
(ClassLoader classLoader, Class<?>... classes) Preload the given classes and so ensure theClassLoader
has these loaded after this method call.
-
Field Details
-
NAMES
-
PROVIDED
- See Also:
-
_instance
-
-
Constructor Details
-
Library
- Throws:
Exception
-
Library
-
-
Method Details
-
tryLoadClasses
Preload the given classes and so ensure theClassLoader
has these loaded after this method call.- Parameters:
classLoader
- theClassLoader
classes
- 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:
true
if 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:
true
if initialization was successful- Throws:
Exception
- if an error happens during initialization
-