Language

JniRuntime.JniTypeManager Class

Definition

Manages bound Java types.

public class JniRuntime.JniTypeManager : IDisposable
type JniRuntime.JniTypeManager = class
    interface IDisposable
    interface JniRuntime.ISetRuntime
Inheritance
JniRuntime.JniTypeManager
Derived
Implements

Remarks

Type mapping is supplied through virtual lookup hooks. The reflection-based implementation is available separately as JniRuntime.ReflectionJniTypeManager.

Constructors

Name Description
JniRuntime.JniTypeManager()

Initializes the type manager base class.

Properties

Name Description
Runtime

Gets the runtime assigned to this type manager.

Methods

Name Description
Dispose()

Marks the type manager disposed through the disposal hook.

Dispose(Boolean)

Marks the type manager as disposed.

GetInvokerType(Type)

Gets the Invoker type for type

GetInvokerTypeCore(Type)

Supplies the invoker-type lookup hook.

GetReplacementMethodInfo(String, String, String)

Requests replacement metadata for a JNI method.

GetReplacementMethodInfoCore(String, ReadOnlySpan<Char>, ReadOnlySpan<Char>)

Resolves member remapping without requiring name and signature strings. The default implementation preserves dispatch to the string overload.

GetReplacementMethodInfoCore(String, String, String)

Supplies the method-remapping lookup hook.

GetReplacementType(String)

Requests a replacement JNI type name.

GetReplacementTypeCore(String)

Supplies the type-name replacement hook.

GetSimpleReference(Type)

Supplies the single-name lookup hook for a managed type.

GetSimpleReferences(Type)

Supplies candidate simple JNI names for a managed type.

GetStaticMethodFallbackTypes(String)

Requests alternate declaring types for static-method lookup.

GetStaticMethodFallbackTypesCore(String)

Supplies the static-method fallback-type hook.

GetType(JniTypeSignature)

Resolves one managed type for a JNI type signature.

GetTypeForSimpleReference(String)

Supplies the single managed-type lookup hook.

GetTypes(JniTypeSignature)

Supplies managed type candidates for a JNI signature.

GetTypesForSimpleReference(String)

Supplies managed type candidates for a simple JNI name.

GetTypeSignature(Type)

Gets the JNI signature selected for a managed type.

GetTypeSignatureCore(Type)

Supplies the single-signature mapping hook.

GetTypeSignatures(Type)

Gets candidate JNI signatures for a managed type.

GetTypeSignaturesCore(Type)

Supplies the multiple-signature mapping hook.

OnSetRuntime(JniRuntime)

Stores the runtime after checking that the manager is not disposed.

RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Provides the native-member registration extension point.

RegisterNativeMembers(JniType, Type, String)
Obsolete.

Provides the obsolete string-based native registration extension point.

TryRegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Tries generated registration callbacks before attributed registration methods.

TryRegisterNativeMembers(JniType, Type, String)
Obsolete.

Tries generated or attributed native registration with a method description.

Applies to