public final class JNIConfig extends Object
NativeIsolate and classes generated by the native bridge
processor.| Modifier and Type | Class and Description |
|---|---|
static class |
JNIConfig.Builder
A builder class to construct
JNIConfig instances. |
| Modifier and Type | Method and Description |
|---|---|
<T> BinaryMarshaller<T> |
lookupMarshaller(Class<T> type,
Class<? extends Annotation>... annotationTypes)
|
<T> BinaryMarshaller<T> |
lookupMarshaller(org.graalvm.polyglot.TypeLiteral<T> parameterizedType,
Class<? extends Annotation>... annotationTypes)
|
static JNIConfig.Builder |
newBuilder() |
@SafeVarargs public final <T> BinaryMarshaller<T> lookupMarshaller(Class<T> type, Class<? extends Annotation>... annotationTypes)
BinaryMarshaller for the type and annotationTypes. The
method first tries to find a marshaller registered for the type and some annotation
from annotationTypes. If no such marshaller exists, it tries to find a marshaller
registered just for the type. If there is no such a marshaller it throws the
UnsupportedOperationException.type - the parameter or return type.annotationTypes - parameter or method annotation types.UnsupportedOperationException - if there is no registered marshaller for the
type.@SafeVarargs public final <T> BinaryMarshaller<T> lookupMarshaller(org.graalvm.polyglot.TypeLiteral<T> parameterizedType, Class<? extends Annotation>... annotationTypes)
BinaryMarshaller for the parameterizedType and
annotationTypes. The method first tries to find a marshaller registered for the
parameterizedType and some annotation from annotationTypes. If no such
marshaller exists, it tries to find a marshaller registered just for the
parameterizedType. If there is no such a marshaller it throws the
UnsupportedOperationException.parameterizedType - the parameter or return type.annotationTypes - parameter or method annotation types.UnsupportedOperationException - if there is no registered marshaller for the
parameterizedType.public static JNIConfig.Builder newBuilder()