java.lang.Object
com.graphql_java_generator.samples.forum.client.graphql.forum.client.util.GraphQLWiring
All Implemented Interfaces:
org.springframework.graphql.execution.RuntimeWiringConfigurer

@Component("graphQLWiring${configuration.springBeanSuffix}") public class GraphQLWiring extends Object implements org.springframework.graphql.execution.RuntimeWiringConfigurer
Thanks to spring-graphql, the POJO classes are auto-magically discovered and mapped. But the custom scalars still needs to be 'manually' wired. This is the objective of this class.

Based on the https://www.graphql-java.com/tutorials/getting-started-with-spring-boot/ tutorial
Author:
etienne-sf
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.slf4j.Logger
    The logger for this instance
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(graphql.schema.idl.RuntimeWiring.Builder builder)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.graphql.execution.RuntimeWiringConfigurer

    configure
  • Field Details

    • logger

      protected org.slf4j.Logger logger
      The logger for this instance
  • Constructor Details

    • GraphQLWiring

      public GraphQLWiring()
  • Method Details

    • configure

      public void configure(graphql.schema.idl.RuntimeWiring.Builder builder)
      Specified by:
      configure in interface org.springframework.graphql.execution.RuntimeWiringConfigurer