Package com.kenai.jffi
Class CallContextCache
java.lang.Object
com.kenai.jffi.CallContextCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static final class
private static final class
Holder class to do lazy allocation of the ClosureManager instance -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<CallContextCache.Signature, CallContextCache.CallContextRef> private final ReferenceQueue
<CallContext> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CallContext
getCallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContext
getCallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) final CallContext
getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention) final CallContext
getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContext
getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) static CallContextCache
Gets the global instance of theCallContextCache
-
Field Details
-
contextCache
-
contextReferenceQueue
-
-
Constructor Details
-
CallContextCache
private CallContextCache()Constructs a ClosureManager
-
-
Method Details
-
getInstance
Gets the global instance of theCallContextCache
- Returns:
- An instance of a
CallContextCache
-
getCallContext
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention) -
getCallContext
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) -
getCallContext
public final CallContext getCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) -
getCallContext
public final CallContext getCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) -
getCallContext
public final CallContext getCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)
-