Exemplo n.º 1
0
        internal JvmObjectReference(JvmEnvironment environment, SafeJvmWeakGlobalReferenceHandle handle)
        {
            Contract.Requires <ArgumentNullException>(environment != null, "environment");
            Contract.Requires <ArgumentNullException>(handle != null, "handle");

            _environment = environment;
            _handle      = handle;
        }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            SafeJvmWeakGlobalReferenceHandle handle = _handle;

            if (handle != null)
            {
                handle.Dispose();
            }
        }
Exemplo n.º 3
0
        internal JvmObjectReference(JvmEnvironment environment, JvmNativeEnvironment nativeEnvironment, jobject handle, bool freeLocalReference)
        {
            Contract.Requires <ArgumentNullException>(environment != null, "environment");
            Contract.Requires <ArgumentNullException>(nativeEnvironment != null, "nativeEnvironment");
            Contract.Requires <ArgumentException>(handle != jobject.Null);

            _environment = environment;
            _handle      = nativeEnvironment.NewWeakGlobalReference(handle);
        }
Exemplo n.º 4
0
 internal JvmThreadReference(JvmEnvironment environment, SafeJvmWeakGlobalReferenceHandle handle)
     : base(environment, handle)
 {
     Contract.Requires(environment != null);
     Contract.Requires(handle != null);
 }
Exemplo n.º 5
0
 internal JvmClassReference(JvmEnvironment environment, SafeJvmWeakGlobalReferenceHandle handle)
     : base(environment, handle)
 {
 }