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 RubyClasscreateCallbackClass(ThreadContext context, RubyModule FFI) Creates a Callback class for a ruby runtimefinal PointergetCallback(ThreadContext context, CallbackInfo cbInfo, Object proc) final NativeCallbackFactorygetCallbackFactory(Ruby runtime, CallbackInfo cbInfo) static final CallbackManagerGets 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:
getCallbackin classCallbackManager
-
getCallbackFactory
-