Module org.firebirdsql.jna
Class ClasspathFirebirdEmbeddedLibrary
java.lang.Object
org.firebirdsql.jna.embedded.classpath.ClasspathFirebirdEmbeddedLibrary
- All Implemented Interfaces:
DisposableFirebirdEmbeddedLibrary
,FirebirdEmbeddedLibrary
public final class ClasspathFirebirdEmbeddedLibrary
extends Object
implements DisposableFirebirdEmbeddedLibrary
An implementation of
FirebirdEmbeddedLibrary
that provides Firebird Embedded from a classpath resource.- Since:
- 5
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Will be called by the native resource tracker (if enabled) on exit of the JVM.Version of the Firebird Embedded library.load
(FirebirdEmbeddedProvider firebirdEmbeddedProvider, ClasspathFirebirdEmbeddedResource classpathFirebirdEmbeddedResource) Loads a Firebird Embedded library from the classpath and installs it into a temporary file location.
-
Method Details
-
load
public static ClasspathFirebirdEmbeddedLibrary load(FirebirdEmbeddedProvider firebirdEmbeddedProvider, ClasspathFirebirdEmbeddedResource classpathFirebirdEmbeddedResource) throws FirebirdEmbeddedLoadingException Loads a Firebird Embedded library from the classpath and installs it into a temporary file location.- Parameters:
firebirdEmbeddedProvider
- Firebird Embedded providerclasspathFirebirdEmbeddedResource
- Information to identify the classpath resources to install- Returns:
- Classpath Firebird Embedded library
- Throws:
FirebirdEmbeddedLoadingException
- For errors loading the embedded library to a temporary folder
-
getEntryPointPath
- Specified by:
getEntryPointPath
in interfaceFirebirdEmbeddedLibrary
- Returns:
- Path of the Firebird Embedded main library file
-
getVersion
Description copied from interface:FirebirdEmbeddedLibrary
Version of the Firebird Embedded library.- Specified by:
getVersion
in interfaceFirebirdEmbeddedLibrary
- Returns:
- Version of the Firebird Embedded library
- See Also:
-
dispose
public void dispose()Description copied from interface:DisposableFirebirdEmbeddedLibrary
Will be called by the native resource tracker (if enabled) on exit of the JVM.Implementations that need to delete files from the file system should take into account the possibility that files cannot be deleted on exit, and should try to apply a strategy to cleanup old files on the next run.
- Specified by:
dispose
in interfaceDisposableFirebirdEmbeddedLibrary
-