Package com.facebook.soloader
Class NativeLoaderToSoLoaderDelegate
- java.lang.Object
-
- com.facebook.soloader.NativeLoaderToSoLoaderDelegate
-
- All Implemented Interfaces:
NativeLoaderDelegate
public class NativeLoaderToSoLoaderDelegate extends java.lang.Object implements NativeLoaderDelegate
Class that connects SoLoader to NativeLoader
-
-
Field Summary
-
Fields inherited from interface com.facebook.soloader.nativeloader.NativeLoaderDelegate
SKIP_MERGED_JNI_ONLOAD
-
-
Constructor Summary
Constructors Constructor Description NativeLoaderToSoLoaderDelegate()
-
Method Summary
Modifier and Type Method Description java.lang.StringgetLibraryPath(java.lang.String libName)intgetSoSourcesVersion()booleanloadLibrary(java.lang.String shortName, int flags)
-
-
-
Method Detail
-
loadLibrary
public boolean loadLibrary(java.lang.String shortName, int flags)- 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:
NativeLoader.loadLibrary(String, int)
-
getLibraryPath
public java.lang.String getLibraryPath(java.lang.String libName) throws java.io.IOException- Specified by:
getLibraryPathin interfaceNativeLoaderDelegate- Parameters:
libName- Name of library to find, without "lib" prefix or ".so" suffix- Returns:
- the so file path
- Throws:
java.io.IOException- IOException- See Also:
NativeLoader.getLibraryPath(String)
-
getSoSourcesVersion
public int getSoSourcesVersion()
- Specified by:
getSoSourcesVersionin interfaceNativeLoaderDelegate- Returns:
- The version number for the loader.
- See Also:
NativeLoader.getSoSourcesVersion()
-
-