public final class ClasspathFirebirdEmbeddedLibrary extends java.lang.Object implements DisposableFirebirdEmbeddedLibrary
FirebirdEmbeddedLibrary
that provides Firebird Embedded from a classpath resource.Modifier and Type | Method and Description |
---|---|
void |
dispose()
Will be called by the native resource tracker (if enabled) on exit of the JVM.
|
java.nio.file.Path |
getEntryPointPath() |
java.lang.String |
getVersion()
Version of the Firebird Embedded library.
|
static ClasspathFirebirdEmbeddedLibrary |
load(FirebirdEmbeddedProvider firebirdEmbeddedProvider,
ClasspathFirebirdEmbeddedResource classpathFirebirdEmbeddedResource)
Loads a Firebird Embedded library from the classpath and installs it into a temporary file location.
|
public static ClasspathFirebirdEmbeddedLibrary load(FirebirdEmbeddedProvider firebirdEmbeddedProvider, ClasspathFirebirdEmbeddedResource classpathFirebirdEmbeddedResource) throws FirebirdEmbeddedLoadingException
firebirdEmbeddedProvider
- Firebird Embedded providerclasspathFirebirdEmbeddedResource
- Information to identify the classpath resources to installFirebirdEmbeddedLoadingException
- For errors loading the embedded library to a temporary folderpublic java.nio.file.Path getEntryPointPath()
getEntryPointPath
in interface FirebirdEmbeddedLibrary
public java.lang.String getVersion()
FirebirdEmbeddedLibrary
getVersion
in interface FirebirdEmbeddedLibrary
FirebirdEmbeddedLibrary.getVersion()
public void dispose()
DisposableFirebirdEmbeddedLibrary
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.
dispose
in interface DisposableFirebirdEmbeddedLibrary
Copyright © 2001-2023 Jaybird (Firebird JDBC) team. All rights reserved.