|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kenai.jffi.ClosureManager
public class ClosureManager
Allocates and manages the lifecycle of native closures (aka callbacks)
Method Summary | |
---|---|
static ClosureManager |
getInstance()
Gets the global instance of the ClosureManager |
Closure.Handle |
newClosure(Closure closure,
CallContext callContext)
Wraps a java object that implements the Closure interface in a
native closure. |
Closure.Handle |
newClosure(Closure closure,
Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Wraps a java object that implements the Closure interface in a
native closure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final ClosureManager getInstance()
public final Closure.Handle newClosure(Closure closure, Type returnType, Type[] parameterTypes, CallingConvention convention)
Closure
interface in a
native closure.
closure
- The java object to be called when the native closure is invoked.returnType
- The return type of the closure.parameterTypes
- The parameter types of the closure.convention
- The calling convention of the closure.
Closure.Handle
instance.public final Closure.Handle newClosure(Closure closure, CallContext callContext)
Closure
interface in a
native closure.
closure
- The java object to be called when the native closure is invoked.returnType
- The return type of the closure.parameterTypes
- The parameter types of the closure.convention
- The calling convention of the closure.
Closure.Handle
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |