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