Package graphql.schema.idl
Class MockedWiringFactory
- java.lang.Object
-
- graphql.schema.idl.MockedWiringFactory
-
- All Implemented Interfaces:
WiringFactory
@PublicApi public class MockedWiringFactory extends java.lang.Object implements WiringFactory
-
-
Constructor Summary
Constructors Constructor Description MockedWiringFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFetchergetDataFetcher(FieldWiringEnvironment environment)Returns aDataFetchergiven the type definitionGraphQLScalarTypegetScalar(ScalarWiringEnvironment environment)Returns aGraphQLScalarTypegiven scalar defined in IDLTypeResolvergetTypeResolver(InterfaceWiringEnvironment environment)Returns aTypeResolvergiven the type interfaceTypeResolvergetTypeResolver(UnionWiringEnvironment environment)Returns aTypeResolvergiven the type unionbooleanprovidesDataFetcher(FieldWiringEnvironment environment)This is called to ask if this factory can provide a data fetcher for the definitionbooleanprovidesScalar(ScalarWiringEnvironment environment)This is called to ask if this factory can provide a custom scalarbooleanprovidesTypeResolver(InterfaceWiringEnvironment environment)This is called to ask if this factory can provide a type resolver for the interfacebooleanprovidesTypeResolver(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, getDefaultDataFetcher, getSchemaDirectiveWiring, providesDataFetcherFactory, providesSchemaDirectiveWiring
-
-
-
-
Method Detail
-
providesTypeResolver
public boolean providesTypeResolver(InterfaceWiringEnvironment environment)
Description copied from interface:WiringFactoryThis is called to ask if this factory can provide a type resolver for the interface- Specified by:
providesTypeResolverin 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:WiringFactoryReturns aTypeResolvergiven the type interface- Specified by:
getTypeResolverin interfaceWiringFactory- Parameters:
environment- the wiring environment- Returns:
- a
TypeResolver
-
providesTypeResolver
public boolean providesTypeResolver(UnionWiringEnvironment environment)
Description copied from interface:WiringFactoryThis is called to ask if this factory can provide a type resolver for the union- Specified by:
providesTypeResolverin 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:WiringFactoryReturns aTypeResolvergiven the type union- Specified by:
getTypeResolverin interfaceWiringFactory- Parameters:
environment- the union wiring environment- Returns:
- a
TypeResolver
-
providesDataFetcher
public boolean providesDataFetcher(FieldWiringEnvironment environment)
Description copied from interface:WiringFactoryThis is called to ask if this factory can provide a data fetcher for the definition- Specified by:
providesDataFetcherin 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:WiringFactoryReturns aDataFetchergiven the type definition- Specified by:
getDataFetcherin interfaceWiringFactory- Parameters:
environment- the wiring environment- Returns:
- a
DataFetcher
-
providesScalar
public boolean providesScalar(ScalarWiringEnvironment environment)
Description copied from interface:WiringFactoryThis is called to ask if this factory can provide a custom scalar- Specified by:
providesScalarin 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:WiringFactoryReturns aGraphQLScalarTypegiven scalar defined in IDL- Specified by:
getScalarin interfaceWiringFactory- Parameters:
environment- the wiring environment- Returns:
- a
GraphQLScalarType
-
-