Package graphql.schema.idl
Class NoopWiringFactory
- java.lang.Object
-
- graphql.schema.idl.NoopWiringFactory
-
- All Implemented Interfaces:
WiringFactory
public class NoopWiringFactory extends java.lang.Object implements WiringFactory
-
-
Constructor Summary
Constructors Constructor Description NoopWiringFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFetcher
getDataFetcher(FieldWiringEnvironment environment)
Returns aDataFetcher
given the type definitionDataFetcher
getDefaultDataFetcher(FieldWiringEnvironment environment)
All fields need a data fetcher of some sort and this method is called to provide the data fetcher that will be used if no specific one has been providedGraphQLScalarType
getScalar(ScalarWiringEnvironment environment)
Returns aGraphQLScalarType
given scalar defined in IDLTypeResolver
getTypeResolver(InterfaceWiringEnvironment environment)
Returns aTypeResolver
given the type interfaceTypeResolver
getTypeResolver(UnionWiringEnvironment environment)
Returns aTypeResolver
given the type unionboolean
providesDataFetcher(FieldWiringEnvironment environment)
This is called to ask if this factory can provide a data fetcher for the definitionboolean
providesScalar(ScalarWiringEnvironment environment)
This is called to ask if this factory can provide a custom scalarboolean
providesTypeResolver(InterfaceWiringEnvironment environment)
This is called to ask if this factory can provide a type resolver for the interfaceboolean
providesTypeResolver(UnionWiringEnvironment environment)
This is called to ask if this factory can provide a type resolver for the union-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface graphql.schema.idl.WiringFactory
getDataFetcherFactory, getSchemaDirectiveWiring, providesDataFetcherFactory, providesSchemaDirectiveWiring
-
-
-
-
Method Detail
-
providesScalar
public boolean providesScalar(ScalarWiringEnvironment environment)
Description copied from interface:WiringFactory
This is called to ask if this factory can provide a custom scalar- Specified by:
providesScalar
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- true if the factory can give out a type resolver
-
getScalar
public GraphQLScalarType getScalar(ScalarWiringEnvironment environment)
Description copied from interface:WiringFactory
Returns aGraphQLScalarType
given scalar defined in IDL- Specified by:
getScalar
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- a
GraphQLScalarType
-
providesTypeResolver
public boolean providesTypeResolver(InterfaceWiringEnvironment environment)
Description copied from interface:WiringFactory
This is called to ask if this factory can provide a type resolver for the interface- Specified by:
providesTypeResolver
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- true if the factory can give out a type resolver
-
getTypeResolver
public TypeResolver getTypeResolver(InterfaceWiringEnvironment environment)
Description copied from interface:WiringFactory
Returns aTypeResolver
given the type interface- Specified by:
getTypeResolver
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- a
TypeResolver
-
providesTypeResolver
public boolean providesTypeResolver(UnionWiringEnvironment environment)
Description copied from interface:WiringFactory
This is called to ask if this factory can provide a type resolver for the union- Specified by:
providesTypeResolver
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- true if the factory can give out a type resolver
-
getTypeResolver
public TypeResolver getTypeResolver(UnionWiringEnvironment environment)
Description copied from interface:WiringFactory
Returns aTypeResolver
given the type union- Specified by:
getTypeResolver
in interfaceWiringFactory
- Parameters:
environment
- the union wiring environment- Returns:
- a
TypeResolver
-
providesDataFetcher
public boolean providesDataFetcher(FieldWiringEnvironment environment)
Description copied from interface:WiringFactory
This is called to ask if this factory can provide a data fetcher for the definition- Specified by:
providesDataFetcher
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- true if the factory can give out a data fetcher
-
getDataFetcher
public DataFetcher getDataFetcher(FieldWiringEnvironment environment)
Description copied from interface:WiringFactory
Returns aDataFetcher
given the type definition- Specified by:
getDataFetcher
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- a
DataFetcher
-
getDefaultDataFetcher
public DataFetcher getDefaultDataFetcher(FieldWiringEnvironment environment)
Description copied from interface:WiringFactory
All fields need a data fetcher of some sort and this method is called to provide the data fetcher that will be used if no specific one has been provided- Specified by:
getDefaultDataFetcher
in interfaceWiringFactory
- Parameters:
environment
- the wiring environment- Returns:
- a
DataFetcher
-
-