Taal

JniRuntime.JniObjectReferenceManager Class

Definition

Provides JNI reference creation, deletion, accounting, and diagnostic hooks.

public abstract class JniRuntime.JniObjectReferenceManager : IDisposable
type JniRuntime.JniObjectReferenceManager = class
    interface IDisposable
    interface JniRuntime.ISetRuntime
Inheritance
JniRuntime.JniObjectReferenceManager
Implements

Constructors

Name Description
JniRuntime.JniObjectReferenceManager()

Initializes the object reference manager base class.

Properties

Name Description
GlobalReferenceCount

Gets the global-reference count maintained by the manager implementation.

LogGlobalReferenceMessages

Gets whether global-reference diagnostic messages are enabled.

LogLocalReferenceMessages

Gets whether local-reference diagnostic messages are enabled.

Runtime

Gets the runtime associated with this manager.

WeakGlobalReferenceCount

Gets the weak-global-reference count maintained by the manager implementation.

Methods

Name Description
CreatedLocalReference(JniObjectReference, Int32)

Records a local reference that has already been created, without creating another reference.

CreateGlobalReference(JniObjectReference)

Creates a global reference without disposing the source reference.

CreateLocalReference(JniObjectReference, Int32)

Creates a local reference and updates the supplied reference count.

CreateWeakGlobalReference(JniObjectReference)

Creates a weak global reference without disposing the source reference.

DeleteGlobalReference(JniObjectReference)

Deletes a global JNI reference and clears the managed reference value.

DeleteLocalReference(JniObjectReference, Int32)

Deletes a local JNI reference, clears its value, and updates the supplied count.

DeleteWeakGlobalReference(JniObjectReference)

Deletes a weak global JNI reference and clears the managed reference value.

Dispose()

Calls the manager's disposal hook with disposing set to false.

Dispose(Boolean)

Provides a disposal hook for derived managers; the base implementation does nothing.

OnSetRuntime(JniRuntime)

Stores the runtime that uses this reference manager.

ReleaseLocalReference(JniObjectReference, Int32)

Removes a local reference from managed accounting without deleting its JNI handle.

WriteGlobalReferenceLine(String, Object[])

Provides a global-reference diagnostic output hook; the base implementation writes nothing.

WriteLocalReferenceLine(String, Object[])

Provides a local-reference diagnostic output hook; the base implementation writes nothing.

Applies to