Class NativeResources

java.lang.Object
org.apache.subversion.javahl.NativeResources

public class NativeResources extends java.lang.Object
Handles activities related to management of native resouces (e.g. loading of native libraries). Public for backward compat. This class may disappear in future versions of the API. You've been warned.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static Version
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Version
    Returns version information about the underlying native libraries.
    private static final void
    Initializer for native resources to be invoked after the native library has been loaded.
    private static void
    Initialize the native library layer.
    static void
    Load the required native library whose path is specified by the system property subversion.native.library (which can be passed to the JVM on start-up using an argument like -Dsubversion.native.library=/usr/local/lib/libsvnjavahl-1.so).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • version

      private static Version version
  • Constructor Details

    • NativeResources

      public NativeResources()
  • Method Details

    • getVersion

      public static Version getVersion()
      Returns version information about the underlying native libraries.
      Returns:
      version
    • loadNativeLibrary

      public static void loadNativeLibrary()
      Load the required native library whose path is specified by the system property subversion.native.library (which can be passed to the JVM on start-up using an argument like -Dsubversion.native.library=/usr/local/lib/libsvnjavahl-1.so). If the system property is not specified or cannot be loaded, attempt to load the library using its expected name, and the platform-dependent loading mechanism.
      Throws:
      java.lang.UnsatisfiedLinkError - If the native library cannot be loaded.
      java.lang.LinkageError - If the version of the loaded native library is not compatible with this version of JavaHL's Java APIs.
    • init

      private static final void init()
      Initializer for native resources to be invoked after the native library has been loaded. Sets library version information, and initializes the re-entrance hack for native code.
      Throws:
      java.lang.LinkageError - If the version of the loaded native library is not compatible with this version of JavaHL's Java APIs.
    • initNativeLibrary

      private static void initNativeLibrary()
      Initialize the native library layer.