aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-02-05 00:19:22 +0100
committerSven Gothel <[email protected]>2015-02-05 00:19:22 +0100
commitdd2440cbadc642a561d8f92c502fe822b2f11762 (patch)
tree1e47c7c25d70050c70f047636b453a535d7355fa /src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java
parent2328173804f78f536b161f31d7c73be16823c7f3 (diff)
Refine commit 12feaa7d3b1544098f684d851e3caff1ec88cbc8: Add 'throws SecurityException' decl., remove dead code, remove redundant check.
Diffstat (limited to 'src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java')
-rw-r--r--src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java b/src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java
index 4fc40a4..ea7cfa2 100644
--- a/src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java
+++ b/src/java/com/jogamp/gluegen/runtime/FunctionAddressResolver.java
@@ -32,16 +32,20 @@
package com.jogamp.gluegen.runtime;
import com.jogamp.common.os.DynamicLookupHelper;
+import com.jogamp.common.util.SecurityUtil;
/**
- *
- * @author Michael Bien
+ * @author Michael Bien, et.al.
*/
public interface FunctionAddressResolver {
/**
* Resolves the name of the function bound to the method and returns the address.
+ * <p>
+ * Implementation shall ensure {@link SecurityUtil#checkLinkPermission(String)} is performed.
+ * </p>
+ * @throws SecurityException if user is not granted access for the library set.
*/
- public long resolve(String name, DynamicLookupHelper lookup);
+ public long resolve(String name, DynamicLookupHelper lookup) throws SecurityException;
}