Package com.kenai.jffi
Class CallContextCache
- java.lang.Object
-
- com.kenai.jffi.CallContextCache
-
public class CallContextCache extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classCallContextCache.CallContextRefprivate static classCallContextCache.Signatureprivate static classCallContextCache.SingletonHolderHolder class to do lazy allocation of the ClosureManager instance
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<CallContextCache.Signature,CallContextCache.CallContextRef>contextCacheprivate java.lang.ref.ReferenceQueue<CallContext>contextReferenceQueue
-
Constructor Summary
Constructors Modifier Constructor Description privateCallContextCache()Constructs a ClosureManager
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallContextgetCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)CallContextgetCallContext(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention)CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno)CallContextgetCallContext(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect)static CallContextCachegetInstance()Gets the global instance of theCallContextCache
-
-
-
Field Detail
-
contextCache
private final java.util.Map<CallContextCache.Signature,CallContextCache.CallContextRef> contextCache
-
contextReferenceQueue
private final java.lang.ref.ReferenceQueue<CallContext> contextReferenceQueue
-
-
Method Detail
-
getInstance
public static CallContextCache 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)
-
-