public class EchoingWiringFactory extends java.lang.Object implements WiringFactory
Constructor and Description |
---|
EchoingWiringFactory() |
Modifier and Type | Method and Description |
---|---|
static GraphQLScalarType |
fakeScalar(java.lang.String name) |
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
|
TypeResolver |
getTypeResolver(InterfaceWiringEnvironment environment)
Returns a
TypeResolver given the type interface |
TypeResolver |
getTypeResolver(UnionWiringEnvironment environment)
Returns a
TypeResolver given the type union |
static RuntimeWiring |
newEchoingWiring() |
static RuntimeWiring |
newEchoingWiring(java.util.function.Consumer<RuntimeWiring.Builder> builderConsumer) |
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
getDataFetcher, getDataFetcherFactory, getScalar, getSchemaDirectiveWiring, providesDataFetcher, providesDataFetcherFactory, providesScalar, providesSchemaDirectiveWiring
public static RuntimeWiring newEchoingWiring()
public static RuntimeWiring newEchoingWiring(java.util.function.Consumer<RuntimeWiring.Builder> builderConsumer)
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 DataFetcher getDefaultDataFetcher(FieldWiringEnvironment environment)
WiringFactory
getDefaultDataFetcher
in interface WiringFactory
environment
- the wiring environmentDataFetcher
public static GraphQLScalarType fakeScalar(java.lang.String name)