All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jnr.ffi.provider.jffi.AbstractAsmLibraryInterface Maven / Gradle / Ivy

There is a newer version: 0.3.1
Show newest version
package jnr.ffi.provider.jffi;

import jnr.ffi.provider.LoadedLibrary;

/**
 *
 */
public abstract class AbstractAsmLibraryInterface implements LoadedLibrary {
    public static final com.kenai.jffi.Invoker ffi = com.kenai.jffi.Invoker.getInstance();
    public static final NativeRuntime runtime = NativeRuntime.getInstance();

    // Strong ref to keep the library alive
    protected final NativeLibrary library;

    public AbstractAsmLibraryInterface(NativeLibrary library) {
        this.library = library;
    }

    public final jnr.ffi.Runtime getRuntime() {
        return runtime;
    }

    final NativeLibrary getLibrary() {
        return library;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy