Package com.kenai.jffi
Class NativeMethods
java.lang.Object
com.kenai.jffi.NativeMethods
public final class NativeMethods
extends java.lang.Object
Utility class to register native methods on a class
-
Method Summary
Modifier and Type Method Description static voidregister(java.lang.Class clazz, java.util.List<NativeMethod> methods)Registers the native methods for a class.static voidunregister(java.lang.Class clazz)Removes all native method attachments for the specified class.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
register
Registers the native methods for a class.- Parameters:
clazz- The java class to register the native methods for.methods- The list of methods to attach to the class.
-
unregister
public static final void unregister(java.lang.Class clazz)Removes all native method attachments for the specified class.- Parameters:
clazz- The class to unregister the native methods on.
-