public class AnnotatedControllerConfigurer extends java.lang.Object implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean, RuntimeWiringConfigurer
RuntimeWiringConfigurer that detects @SchemaMapping
annotated handler methods in @Controller classes and
registers them as DataFetchers.| Constructor and Description |
|---|
AnnotatedControllerConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
configure(graphql.schema.idl.RuntimeWiring.Builder builder)
Apply changes to the
RuntimeWiring.Builder such as registering
DataFetchers, custom scalar types, and more. |
protected org.springframework.context.ApplicationContext |
obtainApplicationContext() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService)
Configure the
ConversionService used for binding handler arguments. |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setConversionService(org.springframework.core.convert.ConversionService conversionService)
ConversionService used for binding handler arguments.protected final org.springframework.context.ApplicationContext obtainApplicationContext()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic void configure(graphql.schema.idl.RuntimeWiring.Builder builder)
RuntimeWiringConfigurerRuntimeWiring.Builder such as registering
DataFetchers, custom scalar types, and more.configure in interface RuntimeWiringConfigurerbuilder - the builder to configure