@PublicApi public class MockedWiringFactory extends java.lang.Object implements WiringFactory
| Constructor and Description |
|---|
MockedWiringFactory() |
| Modifier and Type | Method and Description |
|---|---|
DataFetcher |
getDataFetcher(FieldWiringEnvironment environment)
Returns a
DataFetcher given the type definition |
GraphQLScalarType |
getScalar(ScalarWiringEnvironment environment)
Returns a
GraphQLScalarType given scalar defined in IDL |
TypeResolver |
getTypeResolver(InterfaceWiringEnvironment environment)
Returns a
TypeResolver given the type interface |
TypeResolver |
getTypeResolver(UnionWiringEnvironment environment)
Returns a
TypeResolver given the type union |
boolean |
providesDataFetcher(FieldWiringEnvironment environment)
This is called to ask if this factory can provide a data fetcher for the definition
|
boolean |
providesScalar(ScalarWiringEnvironment environment)
This is called to ask if this factory can provide a custom scalar
|
boolean |
providesTypeResolver(InterfaceWiringEnvironment environment)
This is called to ask if this factory can provide a type resolver for the interface
|
boolean |
providesTypeResolver(UnionWiringEnvironment environment)
This is called to ask if this factory can provide a type resolver for the union
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataFetcherFactory, getDefaultDataFetcher, getSchemaDirectiveWiring, providesDataFetcherFactory, providesSchemaDirectiveWiringpublic boolean providesTypeResolver(InterfaceWiringEnvironment environment)
WiringFactoryprovidesTypeResolver in interface WiringFactoryenvironment - the wiring environmentpublic TypeResolver getTypeResolver(InterfaceWiringEnvironment environment)
WiringFactoryTypeResolver given the type interfacegetTypeResolver in interface WiringFactoryenvironment - the wiring environmentTypeResolverpublic boolean providesTypeResolver(UnionWiringEnvironment environment)
WiringFactoryprovidesTypeResolver in interface WiringFactoryenvironment - the wiring environmentpublic TypeResolver getTypeResolver(UnionWiringEnvironment environment)
WiringFactoryTypeResolver given the type uniongetTypeResolver in interface WiringFactoryenvironment - the union wiring environmentTypeResolverpublic boolean providesDataFetcher(FieldWiringEnvironment environment)
WiringFactoryprovidesDataFetcher in interface WiringFactoryenvironment - the wiring environmentpublic DataFetcher getDataFetcher(FieldWiringEnvironment environment)
WiringFactoryDataFetcher given the type definitiongetDataFetcher in interface WiringFactoryenvironment - the wiring environmentDataFetcherpublic boolean providesScalar(ScalarWiringEnvironment environment)
WiringFactoryprovidesScalar in interface WiringFactoryenvironment - the wiring environmentpublic GraphQLScalarType getScalar(ScalarWiringEnvironment environment)
WiringFactoryGraphQLScalarType given scalar defined in IDLgetScalar in interface WiringFactoryenvironment - the wiring environmentGraphQLScalarType