public class NoopWiringFactory extends java.lang.Object implements WiringFactory
Constructor and Description |
---|
NoopWiringFactory() |
Modifier and Type | Method and Description |
---|---|
DataFetcher |
getDataFetcher(FieldWiringEnvironment environment)
Returns a
DataFetcher given the type definition |
DataFetcher |
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 provided
|
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, getSchemaDirectiveWiring, providesDataFetcherFactory, providesSchemaDirectiveWiring
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
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 DataFetcher getDefaultDataFetcher(FieldWiringEnvironment environment)
WiringFactory
getDefaultDataFetcher
in interface WiringFactory
environment
- the wiring environmentDataFetcher