Class GraphQlRSocketAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.graphql.rsocket.GraphQlRSocketAutoConfiguration
@AutoConfiguration(after={GraphQlAutoConfiguration.class,RSocketMessagingAutoConfiguration.class})
@ConditionalOnClass({graphql.GraphQL.class,org.springframework.graphql.execution.GraphQlSource.class,io.rsocket.core.RSocketServer.class,reactor.netty.http.server.HttpServer.class})
@ConditionalOnBean({org.springframework.messaging.rsocket.annotation.support.RSocketMessageHandler.class,org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer.class})
@ConditionalOnProperty(prefix="spring.graphql.rsocket",
name="mapping")
public class GraphQlRSocketAutoConfiguration
extends Object
Auto-configuration
for enabling Spring GraphQL over
RSocket.- Since:
- 2.7.0
- Author:
- Brian Clozel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.graphql.rsocket.GraphQlRSocketController
graphQlRSocketController
(org.springframework.graphql.server.GraphQlRSocketHandler handler) org.springframework.graphql.server.GraphQlRSocketHandler
graphQlRSocketHandler
(org.springframework.graphql.ExecutionGraphQlService graphQlService, ObjectProvider<org.springframework.graphql.server.RSocketGraphQlInterceptor> interceptors, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Constructor Details
-
GraphQlRSocketAutoConfiguration
public GraphQlRSocketAutoConfiguration()
-
-
Method Details
-
graphQlRSocketHandler
@Bean @ConditionalOnMissingBean public org.springframework.graphql.server.GraphQlRSocketHandler graphQlRSocketHandler(org.springframework.graphql.ExecutionGraphQlService graphQlService, ObjectProvider<org.springframework.graphql.server.RSocketGraphQlInterceptor> interceptors, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
graphQlRSocketController
@Bean @ConditionalOnMissingBean public org.springframework.boot.autoconfigure.graphql.rsocket.GraphQlRSocketController graphQlRSocketController(org.springframework.graphql.server.GraphQlRSocketHandler handler)
-