Top Description Methods
org.graalvm.nativebridge

public @Interface GenerateNativeToNativeBridge

extends Annotation
Annotations
@Retention:CLASS
@Target:TYPE
Imports
org.graalvm.nativeimage.c.function.CEntryPoint, java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, java.util.function.BooleanSupplier

Generates a native to native bridge. For the annotated class, the processor generates a bridge delegating calls to the object in a native image heap. Further information can be found in the native bridge tutorial.

Method Summary

Modifier and TypeMethod and Description
public Class<? extends BooleanSupplier>
include()

If the supplier returns true, the bridge entry points are added automatically when building a shared library.

public Class<?>
jniConfig()

The native bridge configuration.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

includeback to summary
public Class<? extends BooleanSupplier> include()

If the supplier returns true, the bridge entry points are added automatically when building a shared library. This means the bridge entry points are root methods for compilation, and everything reachable from them is compiled too. The provided class must have a nullary constructor, which is used to instantiate the class. The BooleanSupplier#getAsBoolean()} function is called on the newly instantiated instance.

jniConfigback to summary
public Class<?> jniConfig()

The native bridge configuration. The returned class must have an accessible static getInstance() method returning a JNIConfig instance. The returned JNIConfig instance is used for marshallers' lookup.