public class AnnotatedDataFetcherConfigurer extends Object implements ApplicationContextAware, InitializingBean, RuntimeWiringConfigurer
RuntimeWiringConfigurer that detects @SchemaMapping
annotated handler methods in @Controller classes and
registers them as DataFetchers.| Constructor and Description |
|---|
AnnotatedDataFetcherConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
configure(RuntimeWiring.Builder builder)
Apply changes to the
RuntimeWiring.Builder such as registering
DataFetchers, custom scalar types, and more. |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setJsonMessageConverter(GenericHttpMessageConverter<Object> converter)
Configure the
HttpMessageConverter
to use to convert input arguments obtained from the
DataFetchingEnvironment and converted to the type of a declared
@Argument
method parameter. |
void |
setServerCodecConfigurer(ServerCodecConfigurer configurer)
Variant of
setJsonMessageConverter(GenericHttpMessageConverter)
to use an Encoder and Decoder to convert input arguments. |
public void setJsonMessageConverter(@Nullable GenericHttpMessageConverter<Object> converter)
HttpMessageConverter
to use to convert input arguments obtained from the
DataFetchingEnvironment and converted to the type of a declared
@Argument
method parameter.
This method is mutually exclusive with
setServerCodecConfigurer(ServerCodecConfigurer) and is convenient
for use in a Spring MVC application but both variant can be used without
much difference.
converter - the converter to use.public void setServerCodecConfigurer(@Nullable ServerCodecConfigurer configurer)
setJsonMessageConverter(GenericHttpMessageConverter)
to use an Encoder and Decoder to convert input arguments.
This method is mutually exclusive with
setJsonMessageConverter(GenericHttpMessageConverter) and is
convenient for use in a Spring WebFlux application but both variant can
be used without much difference.
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext in interface ApplicationContextAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void configure(RuntimeWiring.Builder builder)
RuntimeWiringConfigurerRuntimeWiring.Builder such as registering
DataFetchers, custom scalar types, and more.configure in interface RuntimeWiringConfigurerbuilder - the builder to configure