Class SystemDelegate
java.lang.Object
com.facebook.soloader.nativeloader.SystemDelegate
- All Implemented Interfaces:
NativeLoaderDelegate
Class which connects system's native library loader to NativeLoader
-
Field Summary
Fields inherited from interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
SKIP_MERGED_JNI_ONLOAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLibraryPath(String libName) intbooleanloadLibrary(String shortName, int flags)
-
Constructor Details
-
SystemDelegate
public SystemDelegate()
-
-
Method Details
-
loadLibrary
- Specified by:
loadLibraryin interfaceNativeLoaderDelegate- Parameters:
shortName- Name of library to find, without "lib" prefix or ".so" suffixflags- 0 for default behavior, otherwise NativeLoaderDelegate defines other behaviors.- Returns:
- whether load successfully
- See Also:
-
getLibraryPath
- Specified by:
getLibraryPathin interfaceNativeLoaderDelegate- Parameters:
libName- Name of library to find, without "lib" prefix or ".so" suffix- Returns:
- the so file path
- See Also:
-
getSoSourcesVersion
public int getSoSourcesVersion()- Specified by:
getSoSourcesVersionin interfaceNativeLoaderDelegate- Returns:
- The version number for the loader.
- See Also:
-