Annotation Interface ByReference
Instruments the native bridge processor to marshall annotated method return type or method
parameter as a reference to a foreign object.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanFor classes with a custom dispatch, when set totruethe foreign object is translated by a custom receiver accessor before it's passed to the target method.
-
Element Details
-
value
Class<?> valueThe class to instantiate for a foreign handle.For HotSpot to native calls.
- If the bridged type is an interface, the class must be assignable to the
NativeObject. - If the bridged type is a class, the class must have a field of the
NativeObjecttype annotated with theEndPointHandle. - If the bridged has a custom dispatch, the class must be the dispatch class with a
factory.
For native to HotSpot calls.
- If the bridged type is an interface, the class must be assignable to the
HSObject.- If the bridged type is a class, the class must have a field of the
HSObjecttype annotated with theEndPointHandle.- If the bridged has a custom dispatch, the class must be a dispatch class with a
factory. - If the bridged type is an interface, the class must be assignable to the
-
useCustomReceiverAccessor
boolean useCustomReceiverAccessorFor classes with a custom dispatch, when set totruethe foreign object is translated by a custom receiver accessor before it's passed to the target method.- See Also:
- Default:
false
-