Class DefaultLibraryLocator

  • All Implemented Interfaces:
    NativeLibraryLocator

    public class DefaultLibraryLocator
    extends Object
    implements 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:
    NativeLibraryLocator
    • Constructor Detail

      • DefaultLibraryLocator

        public DefaultLibraryLocator()
    • 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 interface NativeLibraryLocator
        Returns:
        Iterator of type file, where each file points to a native library to load.