Package jnr.ffi.provider
Class FFIProvider
java.lang.Object
jnr.ffi.provider.FFIProvider
- Direct Known Subclasses:
InvalidProvider
,Provider
This class defines the facilities a JNR FFI provider must provide.
You most likely do NOT want to use this class directly
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <T> LibraryLoader<T>
createLibraryLoader
(Class<T> interfaceClass) Creates a newLibraryLoader
instance.abstract Runtime
Gets the defaultRuntime
for this provider.static FFIProvider
Gets an instance ofFFIProvider
private static FFIProvider
newInvalidProvider
(String message, Throwable cause)
-
Constructor Details
-
FFIProvider
protected FFIProvider()
-
-
Method Details
-
getSystemProvider
Gets an instance ofFFIProvider
- Returns:
- an instance of
FFIProvider
-
getRuntime
Gets the defaultRuntime
for this provider.- Returns:
- the runtime.
-
createLibraryLoader
Creates a newLibraryLoader
instance.- Type Parameters:
T
- The library type.- Parameters:
interfaceClass
- The library interface class.- Returns:
- the
LibraryLoader
instance.
-
newInvalidProvider
-