Class NativeLibraryLoader<T>

    • Field Detail

      • ASM_ENABLED

        static final boolean ASM_ENABLED
    • Constructor Detail

      • NativeLibraryLoader

        NativeLibraryLoader​(java.lang.Class<T> interfaceClass)
    • Method Detail

      • loadLibrary

        public T loadLibrary​(java.lang.Class<T> interfaceClass,
                             java.util.Collection<java.lang.String> libraryNames,
                             java.util.Collection<java.lang.String> searchPaths,
                             java.util.Map<LibraryOption,​java.lang.Object> options)
        Description copied from class: LibraryLoader
        Implemented by FFI providers to load the actual library.
        Specified by:
        loadLibrary in class LibraryLoader<T>
        Parameters:
        interfaceClass - The java class that describes the functions to be mapped.
        libraryNames - A list of libraries to load and search for symbols.
        searchPaths - The paths to search for libraries to be loaded.
        options - The options to apply when loading the library.
        Returns:
        an instance of interfaceClass that will call the native methods.