class CallbackReference
extends java.lang.ref.WeakReference
Callback
closure.Modifier and Type | Class and Description |
---|---|
(package private) static class |
CallbackReference.AttachOptions |
Modifier and Type | Field and Description |
---|---|
(package private) static java.util.Map |
allocations |
(package private) static java.util.Map |
callbackMap |
(package private) Pointer |
cbstruct |
(package private) java.lang.reflect.Method |
method |
(package private) CallbackProxy |
proxy |
Modifier and Type | Method and Description |
---|---|
protected void |
dispose()
Free native resources associated with this callback.
|
protected void |
finalize()
Free native resources associated with this callback when GC'd.
|
(package private) static java.lang.Class |
findCallbackClass(java.lang.Class type)
Find the first instance of an interface which implements the Callback
interface or an interface derived from Callback, which defines an
appropriate callback method.
|
static Callback |
getCallback(java.lang.Class type,
Pointer p)
Return a Callback associated with the given function pointer.
|
static Pointer |
getFunctionPointer(Callback cb)
Return a
Pointer to the native function address for the
given callback. |
Pointer |
getTrampoline()
Obtain a pointer to the native glue code for this callback.
|
(package private) static void |
setCallbackThreadInitializer(Callback cb,
CallbackThreadInitializer initializer) |
static final java.util.Map callbackMap
static final java.util.Map allocations
Pointer cbstruct
CallbackProxy proxy
java.lang.reflect.Method method
static void setCallbackThreadInitializer(Callback cb, CallbackThreadInitializer initializer)
public static Callback getCallback(java.lang.Class type, Pointer p)
static java.lang.Class findCallbackClass(java.lang.Class type)
public Pointer getTrampoline()
protected void finalize()
finalize
in class java.lang.Object
protected void dispose()