Skip to content

Commit 5248a32

Browse files
committed
Polish SerializableGraphQlRequest for GraalVM support
This commit improves the `SerializableGraphQlRequest` by declaring its reflection usage for GraalVM native applications. See gh-905
1 parent fb1f0ee commit 5248a32

File tree

1 file changed

+20
-2
lines changed
  • spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql

1 file changed

+20
-2
lines changed

spring-graphql/src/main/resources/META-INF/native-image/org.springframework.graphql/spring-graphql/reflect-config.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"allDeclaredMethods":true,
1313
"allDeclaredConstructors":true,
1414
"condition": {
15-
"typeReachable": "org.springframework.graphql.client.AbstractGraphQlClientBuilder"
15+
"typeReachable": "org.springframework.graphql.client.CodecDelegate"
1616
}
1717
},
1818
{
@@ -21,7 +21,25 @@
2121
"allDeclaredMethods":true,
2222
"allDeclaredConstructors":true,
2323
"condition": {
24-
"typeReachable": "org.springframework.graphql.server.webflux.GraphQlWebSocketHandler"
24+
"typeReachable": "org.springframework.graphql.server.webflux.CodecDelegate"
25+
}
26+
},
27+
{
28+
"name":"org.springframework.graphql.server.support.SerializableGraphQlRequest",
29+
"allDeclaredFields":true,
30+
"allDeclaredMethods":true,
31+
"allDeclaredConstructors":true,
32+
"condition": {
33+
"typeReachable": "org.springframework.graphql.server.webflux.GraphQlHttpHandler"
34+
}
35+
},
36+
{
37+
"name":"org.springframework.graphql.server.support.SerializableGraphQlRequest",
38+
"allDeclaredFields":true,
39+
"allDeclaredMethods":true,
40+
"allDeclaredConstructors":true,
41+
"condition": {
42+
"typeReachable": "org.springframework.graphql.server.webmvc.GraphQlHttpHandler"
2543
}
2644
}
2745
]

0 commit comments

Comments
 (0)