public class CombinedWiringFactory extends java.lang.Object implements WiringFactory
WiringFactorys together to act as one. It asks each one
whether it handles a type and delegates to the first one to answer yes.| Constructor and Description |
|---|
CombinedWiringFactory(java.util.List<WiringFactory> factories) |
| Modifier and Type | Method and Description |
|---|---|
DataFetcher |
getDataFetcher(FieldWiringEnvironment environment)
Returns a
DataFetcher given the type definition |
<T> DataFetcherFactory<T> |
getDataFetcherFactory(FieldWiringEnvironment environment)
Returns a
DataFetcherFactory given the type definition |
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 |
providesDataFetcherFactory(FieldWiringEnvironment environment)
This is called to ask if this factory can provide a
DataFetcherFactory for the definition |
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, waitgetDefaultDataFetcher, getScalar, getSchemaDirectiveWiring, providesScalar, providesSchemaDirectiveWiringpublic CombinedWiringFactory(java.util.List<WiringFactory> factories)
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 boolean providesDataFetcherFactory(FieldWiringEnvironment environment)
WiringFactoryDataFetcherFactory for the definitionprovidesDataFetcherFactory in interface WiringFactoryenvironment - the wiring environmentpublic <T> DataFetcherFactory<T> getDataFetcherFactory(FieldWiringEnvironment environment)
WiringFactoryDataFetcherFactory given the type definitiongetDataFetcherFactory in interface WiringFactoryT - the type of the data fetcherenvironment - the wiring environmentDataFetcherFactorypublic 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 environmentDataFetcher