public class CallbackManager extends CallbackManager
| Constructor and Description |
|---|
CallbackManager() |
| Modifier and Type | Method and Description |
|---|---|
static RubyClass |
createCallbackClass(Ruby runtime,
RubyModule module)
Creates a Callback class for a ruby runtime
|
Pointer |
getCallback(Ruby runtime,
CallbackInfo cbInfo,
java.lang.Object proc) |
Pointer |
getCallback(Ruby runtime,
CallbackInfo cbInfo,
RubyObject proc)
Gets a Callback object conforming to the signature contained in the
CallbackInfo for the ruby Proc or Block instance.
|
static CallbackManager |
getInstance()
Gets the singleton instance of CallbackManager
|
public static final CallbackManager getInstance()
public static RubyClass createCallbackClass(Ruby runtime, RubyModule module)
runtime - The runtime to create the class formodule - The module to place the class inpublic final Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, java.lang.Object proc)
getCallback in class CallbackManagerpublic final Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, RubyObject proc)
runtime - The ruby runtime the callback is attached tocbInfo - The signature of the native callbackproc - The ruby object to call when the callback is invoked.Copyright © 2002-2009 JRuby Team. All Rights Reserved.