Class ResourceSchemaStringProvider
java.lang.Object
com.graphql_java_generator.plugin.ResourceSchemaStringProvider
Overrides the
GraphQLJavaToolsAutoConfiguration#schemaStringProvider()
bean, to loads our graphqls files,
from the given schemaFilePattern plugin parameter- Author:
- etienne-sf
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the concatenation of all the GraphQL schema, in one stringreadSchema
(org.springframework.core.io.Resource resource) List<org.springframework.core.io.Resource>
schemas
(boolean addIntrospectionSchema)
-
Field Details
-
INTROSPECTION_SCHEMA
- See Also:
-
-
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
Returns the concatenation of all the GraphQL schema, in one string- Returns:
- Throws:
IOException
-
schemaStrings
- Throws:
IOException
-
readSchema
-
getSchemaFilePattern
-