Top Description Inners Constructors Methods
jnr.ffi.provider

public abstract Class FFIProvider

extends Object
Class Inheritance
Known Direct Subclasses
jnr.ffi.provider.InvalidProvider, jnr.ffi.provider.jffi.Provider
Imports
jnr.ffi.LibraryLoader

This class defines the facilities a JNR FFI provider must provide. You most likely do NOT want to use this class directly

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract <
The library type.
T
>
LibraryLoader<T>

Returns:

the LibraryLoader instance.
createLibraryLoader
(Class<T>
The library interface class.
interfaceClass
)

Creates a new LibraryLoader instance.

public abstract Runtime

Returns:

the runtime.
getRuntime
()

Gets the default Runtime for this provider.

public static FFIProvider

Returns:

an instance of FFIProvider
getSystemProvider
()

Gets an instance of FFIProvider

private static FFIProvider
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FFIProviderback to summary
protected FFIProvider()

Method Detail

createLibraryLoaderback to summary
public abstract <T> LibraryLoader<T> createLibraryLoader(Class<T> interfaceClass)

Creates a new LibraryLoader instance.

Parameters
<T>
The library type.
interfaceClass:Class<T>

The library interface class.

Returns:LibraryLoader<T>

the LibraryLoader instance.

getRuntimeback to summary
public abstract Runtime getRuntime()

Gets the default Runtime for this provider.

Returns:Runtime

the runtime.

getSystemProviderback to summary
public static FFIProvider getSystemProvider()

Gets an instance of FFIProvider

Returns:FFIProvider

an instance of FFIProvider

newInvalidProviderback to summary
private static FFIProvider newInvalidProvider(String message, Throwable cause)
jnr.ffi.provider back to summary

private final Class FFIProvider.SystemProviderSingletonHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final FFIProvider

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static FFIProvider
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final FFIProvider INSTANCE

Constructor Detail

SystemProviderSingletonHolderback to summary
private SystemProviderSingletonHolder()

Method Detail

getInstanceback to summary
pack-priv static FFIProvider getInstance()