Class CallContextCache
java.lang.Object
com.kenai.jffi.CallContextCache
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classprivate static final classprivate static final classHolder 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 CallContextgetCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContextgetCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) final CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention) final CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) static CallContextCacheGets 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)
-