public class CombinedWiringFactory extends java.lang.Object implements WiringFactory
WiringFactory
s 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, wait
getDefaultDataFetcher, getScalar, getSchemaDirectiveWiring, providesScalar, providesSchemaDirectiveWiring
public CombinedWiringFactory(java.util.List<WiringFactory> factories)
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 providesDataFetcherFactory(FieldWiringEnvironment environment)
WiringFactory
DataFetcherFactory
for the definitionprovidesDataFetcherFactory
in interface WiringFactory
environment
- the wiring environmentpublic <T> DataFetcherFactory<T> getDataFetcherFactory(FieldWiringEnvironment environment)
WiringFactory
DataFetcherFactory
given the type definitiongetDataFetcherFactory
in interface WiringFactory
T
- the type of the data fetcherenvironment
- the wiring environmentDataFetcherFactory
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