Class NativeLibraryProvider

java.lang.Object
org.elasticsearch.nativeaccess.lib.NativeLibraryProvider
Direct Known Subclasses:
JdkNativeLibraryProvider

public abstract class NativeLibraryProvider extends Object
Allows loading native library mappings.
  • Constructor Details

  • Method Details

    • instance

      public static NativeLibraryProvider instance()
      Get the one and only instance of NativeLibraryProvider that is specific to the running JDK version.
    • getName

      public String getName()
      Returns a human-understandable name for this provider
    • getLibrary

      public <T extends NativeLibrary> T getLibrary(Class<T> cls)
      Construct an instance of the given library class.
      Parameters:
      cls - The library class to create
      Returns:
      An instance of the class