private static JavaVM CreateVirtualMachine(JavaVMHandle handle) { return(new JavaVM(handle)); }
private JavaVM(JavaVMHandle vmHandle) { _handle = vmHandle; _jniInvokeInterface = (JniInvokeInterface)Marshal.PtrToStructure(Marshal.ReadIntPtr(vmHandle.Handle), typeof(JniInvokeInterface)); }
internal static JavaVM GetOrCreateInstance(JavaVMHandle handle) { return(_instances.GetOrAdd(handle, CreateVirtualMachine)); }