/** * Wraps a java object that implements the {@link Closure} interface in a * native closure. * * @param closure The java object to be called when the native closure is invoked. * @param callContext The call context (return type, param types, convention) of the Closure * @return A new {@link Closure.Handle} instance. */ public final Closure.Handle newClosure(Closure closure, CallContext callContext) { ClosurePool pool = getClosurePool(callContext); return pool.newClosureHandle(closure); }
/** * Wraps a java object that implements the {@link Closure} interface in a * native closure. * * @param closure The java object to be called when the native closure is invoked. * @param callContext The call context (return type, param types, convention) of the Closure * @return A new {@link Closure.Handle} instance. */ public final Closure.Handle newClosure(Closure closure, CallContext callContext) { ClosurePool pool = getClosurePool(callContext); return pool.newClosureHandle(closure); }
/** * Wraps a java object that implements the {@link Closure} interface in a * native closure. * * @param closure The java object to be called when the native closure is invoked. * @param callContext The call context (return type, param types, convention) of the Closure * @return A new {@link Closure.Handle} instance. */ public final Closure.Handle newClosure(Closure closure, CallContext callContext) { ClosurePool pool = getClosurePool(callContext); return pool.newClosureHandle(closure); }
public NativeCallbackFactory(Ruby runtime, CallbackInfo cbInfo) { this.runtime = runtime; this.closureInfo = newFunctionInfo(runtime, cbInfo); this.closurePool = com.kenai.jffi.ClosureManager.getInstance().getClosurePool(closureInfo.callContext); this.callbackInfo = cbInfo; this.callbackClass = runtime.getModule("FFI").getClass("Callback"); }
public NativeCallbackFactory(Ruby runtime, CallbackInfo cbInfo) { this.runtime = runtime; this.closureInfo = newFunctionInfo(runtime, cbInfo); this.closurePool = com.kenai.jffi.ClosureManager.getInstance().getClosurePool(closureInfo.callContext); this.callbackInfo = cbInfo; this.callbackClass = runtime.getModule("FFI").getClass("Callback"); }
public NativeCallbackFactory(Ruby runtime, CallbackInfo cbInfo) { this.runtime = runtime; this.closureInfo = newFunctionInfo(runtime, cbInfo); this.closurePool = com.kenai.jffi.ClosureManager.getInstance().getClosurePool(closureInfo.callContext); this.callbackInfo = cbInfo; this.callbackClass = runtime.getModule("FFI").getClass("Callback"); }
public NativeCallbackFactory(Ruby runtime, CallbackInfo cbInfo) { this.runtime = runtime; this.closureInfo = newFunctionInfo(runtime, cbInfo); this.closurePool = com.kenai.jffi.ClosureManager.getInstance().getClosurePool(closureInfo.callContext); this.callbackInfo = cbInfo; this.callbackClass = runtime.getModule("FFI").getClass("Callback"); }