Module com.github.kwhat.jnativehook
Package com.github.kwhat.jnativehook
Class DefaultLibraryLocator
- java.lang.Object
-
- com.github.kwhat.jnativehook.DefaultLibraryLocator
-
- All Implemented Interfaces:
NativeLibraryLocator
public class DefaultLibraryLocator extends Object implements NativeLibraryLocator
Default implementation of theNativeLibraryLocator
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:
NativeLibraryLocator
-
-
Constructor Summary
Constructors Constructor Description DefaultLibraryLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterator<File>
getLibraries()
Perform default procedures to interface with the native library.
-
-
-
Method Detail
-
getLibraries
public Iterator<File> 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:
getLibraries
in interfaceNativeLibraryLocator
- Returns:
- Iterator of type file, where each file points to a native library to load.
-
-