Package com.kenai.jffi
Class NativeMethods
- java.lang.Object
-
- com.kenai.jffi.NativeMethods
-
public final class NativeMethods extends Object
Utility class to register native methods on a class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
register(Class clazz, List<NativeMethod> methods)
Registers the native methods for a class.static void
unregister(Class clazz)
Removes all native method attachments for the specified class.
-
-
-
Method Detail
-
register
public static final void register(Class clazz, List<NativeMethod> methods)
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(Class clazz)
Removes all native method attachments for the specified class.- Parameters:
clazz
- The class to unregister the native methods on.
-
-