]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.lz4/src/net/jpountz/util/NativeParameters.java
Fixed org.simantics.lz4 to use bundle data area when running in OSGi
[simantics/platform.git] / bundles / org.simantics.lz4 / src / net / jpountz / util / NativeParameters.java
diff --git a/bundles/org.simantics.lz4/src/net/jpountz/util/NativeParameters.java b/bundles/org.simantics.lz4/src/net/jpountz/util/NativeParameters.java
new file mode 100644 (file)
index 0000000..a009f96
--- /dev/null
@@ -0,0 +1,25 @@
+package net.jpountz.util;
+
+import java.nio.file.Path;
+
+import org.simantics.lz4.bundle.Activator;
+
+/**
+ * @author Tuukka Lehtonen
+ */
+public class NativeParameters {
+
+    /**
+     * The path that the native LZ4 dynamic library shall be extracted to if
+     * <code>non-null</code>. If <code>null</code>, class {@link Native} will pick a
+     * temporary file from the default temporary directory to extract the library
+     * to and load it from there.
+     *
+     * <p>
+     * This value must be set before {@link Native#load(Path)} is invoked.
+     *
+     * @see Activator
+     */
+    public static Path extractionPath;
+
+}