Headless Server Developer Manual / Version 2107
Table Of Contents
A WiringFactory
implementation is used by the GraphQL runtime to gain information about, for example,
the types and scalars necessary to process a query. To do this, a WiringFactory
consists of
several provides*
methods and corresponding factory methods, for example, to create
DataFetcher
instances.
The Headless Server employs a custom implementation of a WiringFactory
class, the
ModelMappingWiringFactory
.
Basically, the ModelMappingWiringFactory
class extends CombinedWiringFactory
and applies additional instances of ModelMapper
on the results of the DataFetcher
instances. The CombinedWiringFactory
class is basically a WiringFactory
which
delegates calls to several WiringFactory
instances, while acting as one WiringFactory
for the GraphQL runtime.