gpt4 book ai didi

java - GraalVM native-image -H :ConfigurationFileDirectories files 文档

转载 作者:行者123 更新时间:2023-12-05 05:07:48 29 4
gpt4 key购买 nike

在哪里可以找到 GraalVM 的文档/架构 native-image使用 -H:ConfigurationFileDirectories=<dir> 设置的配置文件选项 - jni-config.json , reflect-config.json , proxy-config.jsonresource-config.json

最佳答案

我认为可以找到架构 here .此外,您可以在更高级别的目录之一中找到所有必要的解析器。

我在这里复制模式以防它过时:

One or several (comma-separated) paths to JSON files that specify which program elements should be made available via reflection.
The JSON object schema is:

{
String name; // fully qualified class name
boolean allDeclaredConstructors; // include all declared constructors, see Class.getDeclaredConstructors()
boolean allPublicConstructors; // include all public constructors, see Class.getConstructors()
boolean allDeclaredMethods; // include all declared methods, see Class.getDeclaredMethods()
boolean allPublicMethods; // include all public methods, see Class.getMethods()
boolean allDeclaredFields; // include all declared fields, see Class.getDeclaredFields()
boolean allPublicFields; // include all public fields, see Class.getFields()
{
String name; // method name
String[] parameterTypes; // parameter types (optional, use if ambiguous)
}[] methods;
{
String name; // field name
}[] fields;
}[];

Example:

[
{
"name" : "java.lang.Class",
"allDeclaredConstructors" : "true",
"allPublicConstructors" : "true",
"allDeclaredMethods" : "true",
"allPublicMethods" : "true"
},
{
"name" : "java.lang.String",
"fields" : [
{ "name" : "value" },
{ "name" : "hash" }
],
"methods" : [
{ "name" : "<init>", "parameterTypes" : [] },
{ "name" : "<init>", "parameterTypes" : ["char[]"] },
{ "name" : "charAt" },
{ "name" : "format", "parameterTypes" : ["java.lang.String", "java.lang.Object[]"] },
]
},
{
"name" : "java.lang.String$CaseInsensitiveComparator",
"methods" : [
{ "name" : "compare" }
]
}
]

关于java - GraalVM native-image -H :ConfigurationFileDirectories files 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58846632/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com