Class NativeLibraryProvider

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

public abstract class NativeLibraryProvider extends Object
Multi-library provider for native libraries not yet migrated to @LibrarySpecification. Subclasses register a map of library interfaces to their constructors. Use LibraryProvider.lookupLibrary(Class) for libraries that have been migrated.
  • Constructor Details

  • Method Details

    • getName

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

      public <T> T getLibrary(Class<T> cls)
      Returns an instance of the given library class. Checks the new per-library LibraryProvider lookup first, then falls back to this provider's map.
    • instance

      public static NativeLibraryProvider instance()