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, waitgetDataFetcher, getDataFetcherFactory, getScalar, getSchemaDirectiveWiring, providesDataFetcher, providesDataFetcherFactory, providesScalar, providesSchemaDirectiveWiringpublic static RuntimeWiring newEchoingWiring()
public static RuntimeWiring newEchoingWiring(java.util.function.Consumer<RuntimeWiring.Builder> builderConsumer)
public 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 DataFetcher getDefaultDataFetcher(FieldWiringEnvironment environment)
WiringFactorygetDefaultDataFetcher in interface WiringFactoryenvironment - the wiring environmentDataFetcherpublic static GraphQLScalarType fakeScalar(java.lang.String name)