Class ResourceSchemaStringProvider

java.lang.Object
com.graphql_java_generator.plugin.ResourceSchemaStringProvider

@Component public class ResourceSchemaStringProvider extends Object
Overrides the GraphQLJavaToolsAutoConfiguration#schemaStringProvider() bean, to loads our graphqls files, from the given schemaFilePattern plugin parameter
Author:
etienne-sf
  • Constructor Details

    • ResourceSchemaStringProvider

      public ResourceSchemaStringProvider()
  • Method Details

    • schemas

      public List<org.springframework.core.io.Resource> schemas(boolean addIntrospectionSchema) throws IOException
      Parameters:
      addIntrospectionSchema - true if the introspectionSchema must be added to the list of schemas. (should be true only when generated code, in client mode)
      Returns:
      Throws:
      IOException
    • getConcatenatedSchemaStrings

      public String getConcatenatedSchemaStrings() throws IOException
      Returns the concatenation of all the GraphQL schema, in one string
      Returns:
      Throws:
      IOException
    • schemaStrings

      public List<String> schemaStrings() throws IOException
      Throws:
      IOException
    • readSchema

      public String readSchema(org.springframework.core.io.Resource resource)
    • getSchemaFilePattern

      public String getSchemaFilePattern()