Package org.jruby.ext.ffi.jffi
Class CallbackManager
java.lang.Object
org.jruby.ext.ffi.CallbackManager
org.jruby.ext.ffi.jffi.CallbackManager
Manages Callback instances for the low level FFI backend.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyClass
createCallbackClass
(ThreadContext context, RubyModule FFI) Creates a Callback class for a ruby runtimefinal Pointer
getCallback
(ThreadContext context, CallbackInfo cbInfo, Object proc) final NativeCallbackFactory
getCallbackFactory
(Ruby runtime, CallbackInfo cbInfo) static final CallbackManager
Gets the singleton instance of CallbackManagerMethods inherited from class org.jruby.ext.ffi.CallbackManager
getCallback
-
Constructor Details
-
CallbackManager
public CallbackManager()
-
-
Method Details
-
getInstance
Gets the singleton instance of CallbackManager -
createCallbackClass
Creates a Callback class for a ruby runtime- Parameters:
context
- the current thread contextFFI
- The module to place the class in- Returns:
- The newly created ruby class
-
getCallback
- Specified by:
getCallback
in classCallbackManager
-
getCallbackFactory
-