Module com.github.kwhat.jnativehook
Package com.github.kwhat.jnativehook
Class DefaultLibraryLocator
java.lang.Object
com.github.kwhat.jnativehook.DefaultLibraryLocator
- All Implemented Interfaces:
NativeLibraryLocator
Default implementation of the
NativeLibraryLocator interface. This will first
attempt to load the native library from the java.library.path property. If that fails, it will
attempt to extract a library from the jar based on the host operating system and architecture.- Since:
- 2.0
- Version:
- 2.0
- Author:
- Alexander Barker (alex@1stleg.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionPerform default procedures to interface with the native library.
-
Constructor Details
-
DefaultLibraryLocator
public DefaultLibraryLocator()
-
-
Method Details
-
getLibraries
Perform default procedures to interface with the native library. These procedures include unpacking and loading the library into the Java Virtual Machine.- Specified by:
getLibrariesin interfaceNativeLibraryLocator- Returns:
- Iterator of type file, where each file points to a native library to load.
-