|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rubygrapefruit.platform.Native
public class Native
Provides access to the native integrations. Use get(Class) to load a particular integration.
| Method Summary | ||
|---|---|---|
static
|
get(java.lang.Class<T> type)
Locates a native integration of the given type. |
|
static void |
init(java.io.File extractDir)
Initialises the native integration, if not already initialized. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void init(java.io.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(java.lang.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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||