Class GraphQLWebAutoConfiguration
java.lang.Object
graphql.kickstart.autoconfigure.web.servlet.GraphQLWebAutoConfiguration
@AutoConfiguration
@Import(GraphQLInvokerAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.springframework.web.servlet.DispatcherServlet.class)
@Conditional(OnSchemaOrSchemaProviderBean.class)
@ConditionalOnProperty(value="graphql.servlet.enabled",
havingValue="true",
matchIfMissing=true)
@AutoConfigureAfter({GraphQLJavaToolsAutoConfiguration.class,org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class})
@EnableConfigurationProperties({GraphQLServletProperties.class,AsyncServletProperties.class})
public class GraphQLWebAutoConfiguration
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.cors.CorsConfigurationorg.springframework.web.filter.CorsFiltercorsConfigurer(org.springframework.web.cors.CorsConfiguration corsConfiguration) graphql.kickstart.execution.config.ExecutionStrategyProviderexecutionStrategyProvider(Map<String, graphql.execution.ExecutionStrategy> executionStrategies) graphql.kickstart.execution.config.GraphQLBuildergraphQLBuilder(graphql.kickstart.execution.config.ExecutionStrategyProvider executionStrategyProvider, List<graphql.execution.instrumentation.Instrumentation> instrumentations, graphql.execution.preparsed.PreparsedDocumentProvider preparsedDocumentProvider, graphql.kickstart.execution.config.GraphQLBuilderConfigurer graphQLBuilderConfigurer) graphql.kickstart.spring.error.GraphQLErrorStartupListenergraphQLErrorStartupListener(graphql.kickstart.execution.error.GraphQLErrorHandler errorHandler) graphql.kickstart.servlet.GraphQLHttpServletgraphQLHttpServlet(graphql.kickstart.servlet.GraphQLConfiguration graphQLConfiguration) graphql.kickstart.execution.GraphQLObjectMappergraphQLObjectMapper(org.springframework.beans.factory.ObjectProvider<graphql.kickstart.execution.config.ObjectMapperProvider> objectMapperProviderObjectProvider, graphql.kickstart.execution.config.GraphQLServletObjectMapperConfigurer objectMapperConfigurer) graphql.kickstart.servlet.config.GraphQLSchemaServletProvidergraphQLSchemaProvider(graphql.schema.GraphQLSchema schema) graphql.kickstart.servlet.GraphQLConfigurationgraphQLServletConfiguration(graphql.kickstart.servlet.input.GraphQLInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper, List<graphql.kickstart.servlet.core.GraphQLServletListener> listeners, graphql.kickstart.servlet.input.BatchInputPreProcessor batchInputPreProcessor, graphql.kickstart.servlet.cache.GraphQLResponseCacheManager responseCacheManager, graphql.kickstart.servlet.AsyncTaskDecorator asyncTaskDecorator, Executor asyncExecutor) org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.kickstart.servlet.AbstractGraphQLHttpServlet>graphQLServletRegistrationBean(graphql.kickstart.servlet.AbstractGraphQLHttpServlet servlet, jakarta.servlet.MultipartConfigElement multipartConfigElement) graphql.kickstart.servlet.input.GraphQLInvocationInputFactoryinvocationInputFactory(graphql.kickstart.servlet.config.GraphQLSchemaServletProvider schemaProvider, graphql.kickstart.servlet.context.GraphQLServletContextBuilder contextBuilder, graphql.kickstart.servlet.core.GraphQLServletRootObjectBuilder graphQLRootObjectBuilder) graphql.kickstart.execution.config.ObjectMapperProviderobjectMapperProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Field Details
-
QUERY_EXECUTION_STRATEGY
- See Also:
-
MUTATION_EXECUTION_STRATEGY
- See Also:
-
SUBSCRIPTION_EXECUTION_STRATEGY
- See Also:
-
-
Constructor Details
-
GraphQLWebAutoConfiguration
public GraphQLWebAutoConfiguration()
-
-
Method Details
-
graphQLErrorStartupListener
@Bean public graphql.kickstart.spring.error.GraphQLErrorStartupListener graphQLErrorStartupListener(@Autowired(required=false) graphql.kickstart.execution.error.GraphQLErrorHandler errorHandler) -
corsConfiguration
@Bean @ConditionalOnClass(org.springframework.web.filter.CorsFilter.class) @ConditionalOnProperty(prefix="graphql.servlet", name="cors-enabled", havingValue="true", matchIfMissing=true) @ConfigurationProperties("graphql.servlet.cors") public org.springframework.web.cors.CorsConfiguration corsConfiguration() -
corsConfigurer
@Bean @ConditionalOnClass(org.springframework.web.filter.CorsFilter.class) @ConditionalOnProperty(prefix="graphql.servlet", name="cors-enabled", havingValue="true", matchIfMissing=true) public org.springframework.web.filter.CorsFilter corsConfigurer(org.springframework.web.cors.CorsConfiguration corsConfiguration) -
graphQLSchemaProvider
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.config.GraphQLSchemaServletProvider graphQLSchemaProvider(graphql.schema.GraphQLSchema schema) -
executionStrategyProvider
-
invocationInputFactory
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.input.GraphQLInvocationInputFactory invocationInputFactory(graphql.kickstart.servlet.config.GraphQLSchemaServletProvider schemaProvider, @Autowired(required=false) graphql.kickstart.servlet.context.GraphQLServletContextBuilder contextBuilder, @Autowired(required=false) graphql.kickstart.servlet.core.GraphQLServletRootObjectBuilder graphQLRootObjectBuilder) -
graphQLBuilder
@Bean @ConditionalOnMissingBean public graphql.kickstart.execution.config.GraphQLBuilder graphQLBuilder(graphql.kickstart.execution.config.ExecutionStrategyProvider executionStrategyProvider, @Autowired(required=false) List<graphql.execution.instrumentation.Instrumentation> instrumentations, @Autowired(required=false) graphql.execution.preparsed.PreparsedDocumentProvider preparsedDocumentProvider, @Autowired(required=false) graphql.kickstart.execution.config.GraphQLBuilderConfigurer graphQLBuilderConfigurer) -
graphQLObjectMapper
@Bean @ConditionalOnMissingBean public graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper(org.springframework.beans.factory.ObjectProvider<graphql.kickstart.execution.config.ObjectMapperProvider> objectMapperProviderObjectProvider, @Autowired(required=false) graphql.kickstart.execution.config.GraphQLServletObjectMapperConfigurer objectMapperConfigurer) -
objectMapperProvider
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="graphql.servlet", name="use-default-objectmapper", havingValue="true", matchIfMissing=true) public graphql.kickstart.execution.config.ObjectMapperProvider objectMapperProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
graphQLServletConfiguration
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.GraphQLConfiguration graphQLServletConfiguration(graphql.kickstart.servlet.input.GraphQLInvocationInputFactory invocationInputFactory, graphql.kickstart.execution.GraphQLInvoker graphQLInvoker, graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper, @Autowired(required=false) List<graphql.kickstart.servlet.core.GraphQLServletListener> listeners, @Autowired(required=false) graphql.kickstart.servlet.input.BatchInputPreProcessor batchInputPreProcessor, @Autowired(required=false) graphql.kickstart.servlet.cache.GraphQLResponseCacheManager responseCacheManager, @Autowired(required=false) graphql.kickstart.servlet.AsyncTaskDecorator asyncTaskDecorator, @Autowired(required=false) @Qualifier("graphqlAsyncTaskExecutor") Executor asyncExecutor) -
threadPoolTaskExecutor
@Bean("graphqlAsyncTaskExecutor") @ConditionalOnMissingBean(name="graphqlAsyncTaskExecutor") @ConditionalOnProperty(prefix="graphql.servlet.async", name="enabled", havingValue="true") public Executor threadPoolTaskExecutor() -
graphQLHttpServlet
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.GraphQLHttpServlet graphQLHttpServlet(graphql.kickstart.servlet.GraphQLConfiguration graphQLConfiguration) -
graphQLServletRegistrationBean
@Bean public org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.kickstart.servlet.AbstractGraphQLHttpServlet> graphQLServletRegistrationBean(graphql.kickstart.servlet.AbstractGraphQLHttpServlet servlet, @Autowired(required=false) jakarta.servlet.MultipartConfigElement multipartConfigElement)
-