Package graphql.schema.idl
Class SchemaGeneratorDirectiveHelper
- java.lang.Object
-
- graphql.schema.idl.SchemaGeneratorDirectiveHelper
-
public class SchemaGeneratorDirectiveHelper extends java.lang.Object
This contains the helper code that allowsSchemaDirectiveWiring
implementations to be invoked during schema generation.
-
-
Constructor Summary
Constructors Constructor Description SchemaGeneratorDirectiveHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLEnumType
onEnum(GraphQLEnumType enumType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
GraphQLInputObjectType
onInputObjectType(GraphQLInputObjectType inputObjectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
GraphQLInterfaceType
onInterface(GraphQLInterfaceType interfaceType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
GraphQLObjectType
onObject(GraphQLObjectType objectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
GraphQLScalarType
onScalar(GraphQLScalarType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
GraphQLUnionType
onUnion(GraphQLUnionType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
static <T extends GraphQLDirectiveContainer>
booleanschemaDirectiveWiringIsRequired(T directiveContainer, TypeDefinitionRegistry typeRegistry, RuntimeWiring runtimeWiring)
This will return true if something in the RuntimeWiring requires aSchemaDirectiveWiring
.
-
-
-
Method Detail
-
schemaDirectiveWiringIsRequired
public static <T extends GraphQLDirectiveContainer> boolean schemaDirectiveWiringIsRequired(T directiveContainer, TypeDefinitionRegistry typeRegistry, RuntimeWiring runtimeWiring)
This will return true if something in the RuntimeWiring requires aSchemaDirectiveWiring
. This is to allow a shortcut to decide that we don't need ANY SchemaDirectiveWiring post processing- Type Parameters:
T
- for two- Parameters:
directiveContainer
- the element that has directivestypeRegistry
- the type registryruntimeWiring
- the runtime wiring- Returns:
- true if something in the RuntimeWiring requires a
SchemaDirectiveWiring
-
onObject
public GraphQLObjectType onObject(GraphQLObjectType objectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
onInterface
public GraphQLInterfaceType onInterface(GraphQLInterfaceType interfaceType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
onEnum
public GraphQLEnumType onEnum(GraphQLEnumType enumType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
onInputObjectType
public GraphQLInputObjectType onInputObjectType(GraphQLInputObjectType inputObjectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
onUnion
public GraphQLUnionType onUnion(GraphQLUnionType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
onScalar
public GraphQLScalarType onScalar(GraphQLScalarType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
-
-