Class FFIProvider

  • Direct Known Subclasses:
    Provider

    public abstract class FFIProvider
    extends java.lang.Object
    This class defines the facilities a JNR FFI provider must provide. You most likely do NOT want to use this class directly
    • Constructor Detail

      • FFIProvider

        protected FFIProvider()
    • Method Detail

      • getSystemProvider

        public static FFIProvider getSystemProvider()
        Gets an instance of FFIProvider
        Returns:
        an instance of FFIProvider
      • getRuntime

        public abstract Runtime getRuntime()
        Gets the default Runtime for this provider.
        Returns:
        the runtime.
      • createLibraryLoader

        public abstract <T> LibraryLoader<T> createLibraryLoader​(java.lang.Class<T> interfaceClass)
        Creates a new LibraryLoader instance.
        Type Parameters:
        T - The library type.
        Parameters:
        interfaceClass - The library interface class.
        Returns:
        the LibraryLoader instance.