loadFirstAvailable() — netty Function Reference
Architecture documentation for the loadFirstAvailable() function in NativeLibraryLoader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8ea18f7b_b5e3_b0c6_4ce1_356784300e26["loadFirstAvailable()"] e940cc67_3be6_5ff3_e560_4d68972dc13b["NativeLibraryLoader"] 8ea18f7b_b5e3_b0c6_4ce1_356784300e26 -->|defined in| e940cc67_3be6_5ff3_e560_4d68972dc13b d92afe83_049b_d0b5_f35c_dd5834c38908["load()"] 8ea18f7b_b5e3_b0c6_4ce1_356784300e26 -->|calls| d92afe83_049b_d0b5_f35c_dd5834c38908 style 8ea18f7b_b5e3_b0c6_4ce1_356784300e26 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java lines 106–122
public static void loadFirstAvailable(ClassLoader loader, String... names) {
List<Throwable> suppressed = new ArrayList<Throwable>();
for (String name : names) {
try {
load(name, loader);
logger.debug("Loaded library with name '{}'", name);
return;
} catch (Throwable t) {
suppressed.add(t);
}
}
IllegalArgumentException iae =
new IllegalArgumentException("Failed to load any of the given libraries: " + Arrays.toString(names));
ThrowableUtil.addSuppressedAndClear(iae, suppressed);
throw iae;
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does loadFirstAvailable() do?
loadFirstAvailable() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java.
Where is loadFirstAvailable() defined?
loadFirstAvailable() is defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java at line 106.
What does loadFirstAvailable() call?
loadFirstAvailable() calls 1 function(s): load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free