org.apache.subversion.javahl
Class NativeResources

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

public class NativeResources
extends 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.


Constructor Summary
NativeResources()
           
 
Method Summary
static RuntimeVersion getRuntimeVersion()
           
static Version getVersion()
           
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeResources

public NativeResources()
Method Detail

getVersion

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

getRuntimeVersion

public static RuntimeVersion getRuntimeVersion()
Returns:
Runtime version information about the loaded libsvn_client.

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:
UnsatisfiedLinkError - If the native library cannot be loaded.
LinkageError - If the version of the loaded native library is not compatible with this version of JavaHL's Java APIs.