loadNativeLibrary() — netty Function Reference
Architecture documentation for the loadNativeLibrary() function in Native.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e2e9fbf4_4367_a9db_f40a_e8dfc217b2e5["loadNativeLibrary()"] 3a2176ad_d250_6417_2863_7a8e697645d2["Native"] e2e9fbf4_4367_a9db_f40a_e8dfc217b2e5 -->|defined in| 3a2176ad_d250_6417_2863_7a8e697645d2 style e2e9fbf4_4367_a9db_f40a_e8dfc217b2e5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/Native.java lines 156–175
private static void loadNativeLibrary() {
String name = PlatformDependent.normalizedOs();
if (!"osx".equals(name) && !name.contains("bsd")) {
throw new IllegalStateException("Only supported on OSX/BSD");
}
String staticLibName = "netty_transport_native_kqueue";
String sharedLibName = staticLibName + '_' + PlatformDependent.normalizedArch();
ClassLoader cl = PlatformDependent.getClassLoader(Native.class);
try {
NativeLibraryLoader.load(sharedLibName, cl);
} catch (UnsatisfiedLinkError e1) {
try {
NativeLibraryLoader.load(staticLibName, cl);
logger.debug("Failed to load {}", sharedLibName, e1);
} catch (UnsatisfiedLinkError e2) {
ThrowableUtil.addSuppressed(e1, e2);
throw e1;
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does loadNativeLibrary() do?
loadNativeLibrary() is a function in the netty codebase, defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/Native.java.
Where is loadNativeLibrary() defined?
loadNativeLibrary() is defined in transport-classes-kqueue/src/main/java/io/netty/channel/kqueue/Native.java at line 156.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free