@Configuration @Import(value=GraphQLInvokerAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.springframework.web.servlet.DispatcherServlet.class) @Conditional(value=OnSchemaOrSchemaProviderBean.class) @ConditionalOnProperty(value="graphql.servlet.enabled", havingValue="true", matchIfMissing=true) @AutoConfigureAfter(value={GraphQLJavaToolsAutoConfiguration.class,org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class}) @EnableConfigurationProperties(value={GraphQLServletProperties.class,AsyncServletProperties.class}) public class GraphQLWebAutoConfiguration extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MUTATION_EXECUTION_STRATEGY |
static java.lang.String |
QUERY_EXECUTION_STRATEGY |
static java.lang.String |
SUBSCRIPTION_EXECUTION_STRATEGY |
| Constructor and Description |
|---|
GraphQLWebAutoConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.cors.CorsConfiguration |
corsConfiguration() |
org.springframework.web.filter.CorsFilter |
corsConfigurer(org.springframework.web.cors.CorsConfiguration corsConfiguration) |
graphql.kickstart.execution.config.ExecutionStrategyProvider |
executionStrategyProvider(java.util.Map<java.lang.String,graphql.execution.ExecutionStrategy> executionStrategies) |
graphql.kickstart.execution.config.GraphQLBuilder |
graphQLBuilder(graphql.kickstart.execution.config.ExecutionStrategyProvider executionStrategyProvider,
java.util.List<graphql.execution.instrumentation.Instrumentation> instrumentations,
graphql.execution.preparsed.PreparsedDocumentProvider preparsedDocumentProvider,
graphql.kickstart.execution.config.GraphQLBuilderConfigurer graphQLBuilderConfigurer) |
graphql.kickstart.spring.error.GraphQLErrorStartupListener |
graphQLErrorStartupListener(graphql.kickstart.execution.error.GraphQLErrorHandler errorHandler) |
graphql.kickstart.servlet.GraphQLHttpServlet |
graphQLHttpServlet(graphql.kickstart.servlet.GraphQLConfiguration graphQLConfiguration) |
graphql.kickstart.execution.GraphQLObjectMapper |
graphQLObjectMapper(org.springframework.beans.factory.ObjectProvider<graphql.kickstart.execution.config.ObjectMapperProvider> objectMapperProviderObjectProvider,
graphql.kickstart.execution.config.GraphQLServletObjectMapperConfigurer objectMapperConfigurer) |
graphql.kickstart.servlet.config.GraphQLSchemaServletProvider |
graphQLSchemaProvider(graphql.schema.GraphQLSchema schema) |
graphql.kickstart.servlet.GraphQLConfiguration |
graphQLServletConfiguration(graphql.kickstart.servlet.input.GraphQLInvocationInputFactory invocationInputFactory,
graphql.kickstart.execution.GraphQLInvoker graphQLInvoker,
graphql.kickstart.execution.GraphQLObjectMapper graphQLObjectMapper,
java.util.List<graphql.kickstart.servlet.core.GraphQLServletListener> listeners,
graphql.kickstart.servlet.input.BatchInputPreProcessor batchInputPreProcessor,
graphql.kickstart.servlet.cache.GraphQLResponseCacheManager responseCacheManager,
graphql.kickstart.servlet.AsyncTaskDecorator asyncTaskDecorator,
java.util.concurrent.Executor asyncExecutor) |
org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.kickstart.servlet.AbstractGraphQLHttpServlet> |
graphQLServletRegistrationBean(graphql.kickstart.servlet.AbstractGraphQLHttpServlet servlet,
javax.servlet.MultipartConfigElement multipartConfigElement) |
graphql.kickstart.servlet.input.GraphQLInvocationInputFactory |
invocationInputFactory(graphql.kickstart.servlet.config.GraphQLSchemaServletProvider schemaProvider,
graphql.kickstart.servlet.context.GraphQLServletContextBuilder contextBuilder,
graphql.kickstart.servlet.core.GraphQLServletRootObjectBuilder graphQLRootObjectBuilder) |
graphql.kickstart.execution.config.ObjectMapperProvider |
objectMapperProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
java.util.concurrent.Executor |
threadPoolTaskExecutor() |
public static final java.lang.String QUERY_EXECUTION_STRATEGY
public static final java.lang.String MUTATION_EXECUTION_STRATEGY
public static final java.lang.String SUBSCRIPTION_EXECUTION_STRATEGY
@Bean
public graphql.kickstart.spring.error.GraphQLErrorStartupListener graphQLErrorStartupListener(@Autowired(required=false)
graphql.kickstart.execution.error.GraphQLErrorHandler errorHandler)
@Bean @ConditionalOnClass(value=org.springframework.web.filter.CorsFilter.class) @ConfigurationProperties(value="graphql.servlet.cors") public org.springframework.web.cors.CorsConfiguration corsConfiguration()
@Bean
@ConditionalOnClass(value=org.springframework.web.filter.CorsFilter.class)
@ConditionalOnProperty(value="graphql.servlet.corsEnabled",
havingValue="true",
matchIfMissing=true)
public org.springframework.web.filter.CorsFilter corsConfigurer(org.springframework.web.cors.CorsConfiguration corsConfiguration)
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.config.GraphQLSchemaServletProvider graphQLSchemaProvider(graphql.schema.GraphQLSchema schema)
@Bean
@ConditionalOnMissingBean
public graphql.kickstart.execution.config.ExecutionStrategyProvider executionStrategyProvider(@Autowired(required=false)
java.util.Map<java.lang.String,graphql.execution.ExecutionStrategy> executionStrategies)
@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)
@Bean
@ConditionalOnMissingBean
public graphql.kickstart.execution.config.GraphQLBuilder graphQLBuilder(graphql.kickstart.execution.config.ExecutionStrategyProvider executionStrategyProvider,
@Autowired(required=false)
java.util.List<graphql.execution.instrumentation.Instrumentation> instrumentations,
@Autowired(required=false)
graphql.execution.preparsed.PreparsedDocumentProvider preparsedDocumentProvider,
@Autowired(required=false)
graphql.kickstart.execution.config.GraphQLBuilderConfigurer graphQLBuilderConfigurer)
@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)
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(value="graphql.servlet.use-default-objectmapper",
havingValue="true",
matchIfMissing=true)
public graphql.kickstart.execution.config.ObjectMapperProvider objectMapperProvider(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
@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)
java.util.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(value="graphqlAsyncTaskExecutor")
java.util.concurrent.Executor asyncExecutor)
@Bean(value="graphqlAsyncTaskExecutor") @ConditionalOnMissingBean(name="graphqlAsyncTaskExecutor") public java.util.concurrent.Executor threadPoolTaskExecutor()
@Bean @ConditionalOnMissingBean public graphql.kickstart.servlet.GraphQLHttpServlet graphQLHttpServlet(graphql.kickstart.servlet.GraphQLConfiguration graphQLConfiguration)
@Bean
public org.springframework.boot.web.servlet.ServletRegistrationBean<graphql.kickstart.servlet.AbstractGraphQLHttpServlet> graphQLServletRegistrationBean(graphql.kickstart.servlet.AbstractGraphQLHttpServlet servlet,
@Autowired(required=false)
javax.servlet.MultipartConfigElement multipartConfigElement)