Class GraphQlAutoConfiguration

java.lang.Object
org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration

@AutoConfiguration @ConditionalOnClass({graphql.GraphQL.class,org.springframework.graphql.execution.GraphQlSource.class}) @ConditionalOnGraphQlSchema @EnableConfigurationProperties(GraphQlProperties.class) @ImportRuntimeHints(org.springframework.boot.autoconfigure.graphql.GraphQlAutoConfiguration.GraphQlResourcesRuntimeHints.class) public class GraphQlAutoConfiguration extends Object
Auto-configuration for creating a Spring GraphQL base infrastructure.
Since:
2.7.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphQlAutoConfiguration(org.springframework.beans.factory.ListableBeanFactory beanFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer
     
    org.springframework.graphql.execution.BatchLoaderRegistry
     
    org.springframework.graphql.ExecutionGraphQlService
    executionGraphQlService(org.springframework.graphql.execution.GraphQlSource graphQlSource, org.springframework.graphql.execution.BatchLoaderRegistry batchLoaderRegistry)
     
    org.springframework.graphql.execution.GraphQlSource
    graphQlSource(org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver, GraphQlProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.DataFetcherExceptionResolver> exceptionResolvers, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.SubscriptionExceptionResolver> subscriptionExceptionResolvers, org.springframework.beans.factory.ObjectProvider<graphql.execution.instrumentation.Instrumentation> instrumentations, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.RuntimeWiringConfigurer> wiringConfigurers, org.springframework.beans.factory.ObjectProvider<GraphQlSourceBuilderCustomizer> sourceCustomizers)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GraphQlAutoConfiguration

      public GraphQlAutoConfiguration(org.springframework.beans.factory.ListableBeanFactory beanFactory)
  • Method Details

    • graphQlSource

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.execution.GraphQlSource graphQlSource(org.springframework.core.io.support.ResourcePatternResolver resourcePatternResolver, GraphQlProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.DataFetcherExceptionResolver> exceptionResolvers, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.SubscriptionExceptionResolver> subscriptionExceptionResolvers, org.springframework.beans.factory.ObjectProvider<graphql.execution.instrumentation.Instrumentation> instrumentations, org.springframework.beans.factory.ObjectProvider<org.springframework.graphql.execution.RuntimeWiringConfigurer> wiringConfigurers, org.springframework.beans.factory.ObjectProvider<GraphQlSourceBuilderCustomizer> sourceCustomizers)
    • batchLoaderRegistry

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.execution.BatchLoaderRegistry batchLoaderRegistry()
    • executionGraphQlService

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.ExecutionGraphQlService executionGraphQlService(org.springframework.graphql.execution.GraphQlSource graphQlSource, org.springframework.graphql.execution.BatchLoaderRegistry batchLoaderRegistry)
    • annotatedControllerConfigurer

      @Bean @ConditionalOnMissingBean public org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer annotatedControllerConfigurer()