Class NativeLibraryProvider
java.lang.Object
org.elasticsearch.nativeaccess.lib.NativeLibraryProvider
- Direct Known Subclasses:
JdkNativeLibraryProvider
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 Summary
ConstructorsModifierConstructorDescriptionprotectedNativeLibraryProvider(String name, Map<Class<?>, Supplier<?>> libraries) -
Method Summary
Modifier and TypeMethodDescription<T> TgetLibrary(Class<T> cls) Returns an instance of the given library class.getName()Returns a human-understandable name for this provider.static NativeLibraryProviderinstance()
-
Constructor Details
-
NativeLibraryProvider
-
-
Method Details
-
getName
Returns a human-understandable name for this provider. -
getLibrary
Returns an instance of the given library class. Checks the new per-libraryLibraryProviderlookup first, then falls back to this provider's map. -
instance
-