Package com.kenai.jffi
Class NativeMethods
java.lang.Object
com.kenai.jffi.NativeMethods
Utility class to register native methods on a class
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidregister(Class clazz, List<NativeMethod> methods) Registers the native methods for a class.static final voidunregister(Class clazz) Removes all native method attachments for the specified class.
-
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
Removes all native method attachments for the specified class.- Parameters:
clazz- The class to unregister the native methods on.
-