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
This commit is contained in:
@@ -5,7 +5,16 @@
|
||||
"allDeclaredMethods":true,
|
||||
"allDeclaredConstructors":true,
|
||||
"condition": {
|
||||
"typeReachable": "org.springframework.graphql.client.WebSocketGraphQlTransport"
|
||||
"typeReachable": "org.springframework.graphql.client.DefaultRSocketGraphQlClientBuilder"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name":"org.springframework.graphql.server.support.GraphQlWebSocketMessage",
|
||||
"allDeclaredFields":true,
|
||||
"allDeclaredMethods":true,
|
||||
"allDeclaredConstructors":true,
|
||||
"condition": {
|
||||
"typeReachable": "org.springframework.graphql.client.DefaultWebSocketGraphQlClientBuilder"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user