Language

JniRuntime.ReflectionJniTypeManager Class

Definition

Resolves JNI types and native registration callbacks using managed reflection.

public class JniRuntime.ReflectionJniTypeManager : Java.Interop.JniRuntime.JniTypeManager
type JniRuntime.ReflectionJniTypeManager = class
    inherit JniRuntime.JniTypeManager
Inheritance
JniRuntime.ReflectionJniTypeManager

Remarks

This implementation requires reflection and dynamic-code support and is not compatible with Native AOT.

Constructors

Name Description
JniRuntime.ReflectionJniTypeManager()

Initializes the reflection-based type manager.

Properties

Name Description
Runtime

Gets the runtime assigned to this type manager.

(Inherited from JniRuntime.JniTypeManager)

Methods

Name Description
Dispose()

Marks the type manager disposed through the disposal hook.

(Inherited from JniRuntime.JniTypeManager)
Dispose(Boolean)

Marks the type manager as disposed.

(Inherited from JniRuntime.JniTypeManager)
GetInvokerType(Type)

Gets the Invoker type for type

(Inherited from JniRuntime.JniTypeManager)
GetInvokerTypeCore(Type)

Reads the invoker type from JniTypeSignatureAttribute.

GetReplacementMethodInfo(String, String, String)

Requests replacement metadata for a JNI method.

(Inherited from JniRuntime.JniTypeManager)
GetReplacementMethodInfoCore(String, ReadOnlySpan<Char>, ReadOnlySpan<Char>)

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

(Inherited from JniRuntime.JniTypeManager)
GetReplacementMethodInfoCore(String, String, String)

Supplies no method remapping in this implementation.

GetReplacementType(String)

Requests a replacement JNI type name.

(Inherited from JniRuntime.JniTypeManager)
GetReplacementTypeCore(String)

Supplies no type-name replacement in this implementation.

GetSimpleReference(Type)

Gets the first simple JNI name produced by GetSimpleReferences.

GetSimpleReferences(Type)

Reads a type's directly declared JniTypeSignatureAttribute name.

GetStaticMethodFallbackTypes(String)

Requests alternate declaring types for static-method lookup.

(Inherited from JniRuntime.JniTypeManager)
GetStaticMethodFallbackTypesCore(String)

Supplies no static-method fallback list in this implementation.

GetType(JniTypeSignature)

Resolves one managed type for a JNI type signature.

(Inherited from JniRuntime.JniTypeManager)
GetTypeForSimpleReference(String)

Resolves built-in Java names and primitive descriptors to managed types.

GetTypes(JniTypeSignature)

Enumerates supported managed representations of a JNI signature.

GetTypesForSimpleReference(String)

Enumerates built-in managed types for a simple JNI name.

GetTypeSignature(Type)

Gets the JNI signature selected for a managed type.

(Inherited from JniRuntime.JniTypeManager)
GetTypeSignatureCore(Type)

Resolves a managed type through built-in, array, and annotation mappings.

GetTypeSignatures(Type)

Gets candidate JNI signatures for a managed type.

(Inherited from JniRuntime.JniTypeManager)
GetTypeSignaturesCore(Type)

Enumerates built-in and annotated JNI signatures for a managed type.

OnSetRuntime(JniRuntime)

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

(Inherited from JniRuntime.JniTypeManager)
RegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Invokes generated or attributed native registration callbacks.

RegisterNativeMembers(JniType, Type, String)
Obsolete.

Invokes native registration callbacks with an optional method description.

TryRegisterNativeMembers(JniType, Type, ReadOnlySpan<Char>)

Tries generated registration before attributed callbacks.

TryRegisterNativeMembers(JniType, Type, String)
Obsolete.

Tries native registration with an optional method description.

Applies to