Class CodeInterfaceGetFederatedSchemaMethodGenerator

java.lang.Object
no.sikt.graphitron.generators.abstractions.SimpleMethodGenerator
no.sikt.graphitron.generators.codeinterface.CodeInterfaceGetFederatedSchemaMethodGenerator
All Implemented Interfaces:
MethodGenerator

public class CodeInterfaceGetFederatedSchemaMethodGenerator extends SimpleMethodGenerator
Generates the getFederatedSchema(registry, wiringBuilder, ...) method for building a Federation 2 compatible GraphQL schema.

This provides a flexible API for consumers who need custom type registry and wiring configuration. When the schema has resolvable entities, the method includes entity type resolver and entity fetcher parameters.

  • Field Details

  • Constructor Details

    • CodeInterfaceGetFederatedSchemaMethodGenerator

      public CodeInterfaceGetFederatedSchemaMethodGenerator(ProcessedSchema processedSchema)
  • Method Details

    • generate

      public no.sikt.graphitron.javapoet.MethodSpec generate()
      Specified by:
      generate in class SimpleMethodGenerator
      Returns:
      The complete javapoet MethodSpec based on the provided target.