Skip to content

Commit 5f1ca8c

Browse files
committed
Add reachability metadata for RSocket client
Prior to this commit, using the RSocket client in a native image would fail when setting up the codecs, if the chosen transport was WebSocket. This is due to the fact that the `GraphQlWebSocketMessage` type was not registered for reflection and the proper codec could not be detected as a result. This commit adds reflection metadata for this type. Fixes gh-574
1 parent 0362bdf commit 5f1ca8c

File tree

1 file changed

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

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
"allDeclaredMethods":true,
66
"allDeclaredConstructors":true,
77
"condition": {
8-
"typeReachable": "org.springframework.graphql.client.WebSocketGraphQlTransport"
8+
"typeReachable": "org.springframework.graphql.client.DefaultRSocketGraphQlClientBuilder"
9+
}
10+
},
11+
{
12+
"name":"org.springframework.graphql.server.support.GraphQlWebSocketMessage",
13+
"allDeclaredFields":true,
14+
"allDeclaredMethods":true,
15+
"allDeclaredConstructors":true,
16+
"condition": {
17+
"typeReachable": "org.springframework.graphql.client.DefaultWebSocketGraphQlClientBuilder"
918
}
1019
}
1120
]

0 commit comments

Comments
 (0)