public class Native extends Object
get(Class)
to load a particular integration.Modifier and Type | Method | Description |
---|---|---|
static <T extends NativeIntegration> |
get(Class<T> type) |
Locates a native integration of the given type.
|
static void |
init(File extractDir) |
Initialises the native integration, if not already initialized.
|
public static void init(File extractDir) throws NativeIntegrationUnavailableException, NativeException
extractDir
- The directory to extract native resources into. May be null, in which case a default is
selected.NativeIntegrationUnavailableException
- When native integration is not available on the current machine.NativeException
- On failure to load the native integration.public static <T extends NativeIntegration> T get(Class<T> type) throws NativeIntegrationUnavailableException, NativeException
NativeIntegrationUnavailableException
- When the given native integration is not available on the current
machine.NativeException
- On failure to load the native integration.