From 2034bbfac88b7d1360f9c939e173ff758f7f47ac Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 15 Nov 2015 04:44:32 +0100 Subject: Bug 1268 - DynamicLibraryBundleInfo: Add NativeLibrary's 'searchSystemPath' and 'searchSystemPathFirst' attributes NativeLibrary can be instantiate by defining 'searchSystemPath' and 'searchSystemPathFirst' arguments, allowing to specify the system path role while looking up the library. Since NativeLibrary is utilized via DynamicLibraryBundleInfo upstream, the latter interface shall allow users to specify those attributes. --- .../com/jogamp/common/os/DynamicLibraryBundleInfo.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/java/com/jogamp/common/os/DynamicLibraryBundleInfo.java') diff --git a/src/java/com/jogamp/common/os/DynamicLibraryBundleInfo.java b/src/java/com/jogamp/common/os/DynamicLibraryBundleInfo.java index 7be5f25..01068b4 100644 --- a/src/java/com/jogamp/common/os/DynamicLibraryBundleInfo.java +++ b/src/java/com/jogamp/common/os/DynamicLibraryBundleInfo.java @@ -36,6 +36,21 @@ import com.jogamp.common.util.RunnableExecutor; public interface DynamicLibraryBundleInfo { public static final boolean DEBUG = DynamicLibraryBundle.DEBUG; + /** + * Returns {@code true} if tool libraries shall be searched in the system path (default), otherwise {@code false}. + * @since 2.4.0 + */ + public boolean searchToolLibInSystemPath(); + + /** + * Returns {@code true} if system path shall be searched first (default), rather than searching it last. + *

+ * If {@link #searchToolLibInSystemPath()} is {@code false} the return value is ignored. + *

+ * @since 2.4.0 + */ + public boolean searchToolLibSystemPathFirst(); + /** * If a {@link SecurityManager} is installed, user needs link permissions * for the named libraries. -- cgit v1.2.3