@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, wait
getDataFetcherFactory, getDefaultDataFetcher, getSchemaDirectiveWiring, providesDataFetcherFactory, providesSchemaDirectiveWiring
public boolean providesTypeResolver(InterfaceWiringEnvironment environment)
WiringFactory
providesTypeResolver
in interface WiringFactory
environment
- the wiring environmentpublic TypeResolver getTypeResolver(InterfaceWiringEnvironment environment)
WiringFactory
TypeResolver
given the type interfacegetTypeResolver
in interface WiringFactory
environment
- the wiring environmentTypeResolver
public boolean providesTypeResolver(UnionWiringEnvironment environment)
WiringFactory
providesTypeResolver
in interface WiringFactory
environment
- the wiring environmentpublic TypeResolver getTypeResolver(UnionWiringEnvironment environment)
WiringFactory
TypeResolver
given the type uniongetTypeResolver
in interface WiringFactory
environment
- the union wiring environmentTypeResolver
public boolean providesDataFetcher(FieldWiringEnvironment environment)
WiringFactory
providesDataFetcher
in interface WiringFactory
environment
- the wiring environmentpublic DataFetcher getDataFetcher(FieldWiringEnvironment environment)
WiringFactory
DataFetcher
given the type definitiongetDataFetcher
in interface WiringFactory
environment
- the wiring environmentDataFetcher
public boolean providesScalar(ScalarWiringEnvironment environment)
WiringFactory
providesScalar
in interface WiringFactory
environment
- the wiring environmentpublic GraphQLScalarType getScalar(ScalarWiringEnvironment environment)
WiringFactory
GraphQLScalarType
given scalar defined in IDLgetScalar
in interface WiringFactory
environment
- the wiring environmentGraphQLScalarType