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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classHolder for the single instance of CallbackManager -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RubyClasscreateCallbackClass(Ruby runtime, RubyModule module) Creates a Callback class for a ruby runtimefinal PointergetCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) final NativeCallbackFactorygetCallbackFactory(Ruby runtime, CallbackInfo cbInfo) static final CallbackManagerGets the singleton instance of CallbackManager(package private) final CallbackMemoryIOnewClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, com.kenai.jffi.CallingConvention convention)
-
Field Details
-
factories
-
-
Constructor Details
-
CallbackManager
public CallbackManager()
-
-
Method Details
-
getInstance
Gets the singleton instance of CallbackManager -
createCallbackClass
Creates a Callback class for a ruby runtime- Parameters:
runtime- The runtime to create the class formodule- The module to place the class in- Returns:
- The newly created ruby class
-
getCallback
- Specified by:
getCallbackin classCallbackManager
-
getCallbackFactory
-
newClosure
final CallbackMemoryIO newClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, com.kenai.jffi.CallingConvention convention)
-