public class ArtifactCopyNativeLibraryFinder extends Object implements NativeLibraryFinder
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_STRING |
static String |
HYPHEN_SEPARATOR |
protected static String |
JNILIB_EXTENSION |
static String |
LIB_PREFIX |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
ArtifactCopyNativeLibraryFinder(File tempFolder,
URL[] urls)
Creates a new native library finder
|
| Modifier and Type | Method and Description |
|---|---|
String |
findLibrary(String name,
String parentLibraryPath)
Finds a native library for the given name
|
List<String> |
findLibraryNames()
Provides the native library names
|
protected org.slf4j.Logger logger
protected static final String JNILIB_EXTENSION
public static final String EMPTY_STRING
public static final String LIB_PREFIX
public static final String HYPHEN_SEPARATOR
public ArtifactCopyNativeLibraryFinder(File tempFolder, URL[] urls)
tempFolder - folder where native lib files should be temporarily installed on each deployment.urls - all the URLs that are included in the artifact classloaderpublic String findLibrary(String name, String parentLibraryPath)
NativeLibraryFinderfindLibrary in interface NativeLibraryFindername - native library to findparentLibraryPath - library path for the given name in a parent class loading context. Can be null.public List<String> findLibraryNames()
NativeLibraryFinderfindLibraryNames in interface NativeLibraryFinderCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.