Class FederationSchemaFactory

All Implemented Interfaces:
Aware, InitializingBean, ApplicationContextAware

public final class FederationSchemaFactory extends AnnotatedControllerDetectionSupport<FederationSchemaFactory.EntityMappingInfo>
Detects @EntityMapping handler methods on controllers declared in Spring configuration, and provides factory methods to create GraphQLSchema or SchemaTransformer.

This class is intended to be declared as a bean in Spring configuration, and plugged in via GraphQlSource.SchemaResourceBuilder.schemaFactory(BiFunction).

Since:
1.3.0
Author:
Rossen Stoyanchev
See Also:
  • Federation.transform(TypeDefinitionRegistry, RuntimeWiring)