public class GlobalEnvironment extends Object
| Modifier and Type | Field and Description |
|---|---|
ConverterRegistry |
converters |
InclusionStrategy |
inclusionStrategy |
ArgumentInjectorRegistry |
injectors |
MessageBundle |
messageBundle |
graphql.relay.Relay |
relay |
TypeInfoGenerator |
typeInfoGenerator |
TypeRegistry |
typeRegistry |
TypeTransformer |
typeTransformer |
| Constructor and Description |
|---|
GlobalEnvironment(MessageBundle messageBundle,
graphql.relay.Relay relay,
TypeRegistry typeRegistry,
ConverterRegistry converters,
ArgumentInjectorRegistry injectors,
TypeTransformer typeTransformer,
InclusionStrategy inclusionStrategy,
TypeInfoGenerator typeInfoGenerator) |
| Modifier and Type | Method and Description |
|---|---|
<T,S> T |
convertInput(S input,
AnnotatedType type,
ValueMapper valueMapper) |
List<InputConverter> |
getInputConverters() |
AnnotatedType |
getMappableInputType(AnnotatedType type) |
public final MessageBundle messageBundle
public final graphql.relay.Relay relay
public final TypeRegistry typeRegistry
public final ConverterRegistry converters
public final ArgumentInjectorRegistry injectors
public final TypeTransformer typeTransformer
public final InclusionStrategy inclusionStrategy
public final TypeInfoGenerator typeInfoGenerator
public GlobalEnvironment(MessageBundle messageBundle, graphql.relay.Relay relay, TypeRegistry typeRegistry, ConverterRegistry converters, ArgumentInjectorRegistry injectors, TypeTransformer typeTransformer, InclusionStrategy inclusionStrategy, TypeInfoGenerator typeInfoGenerator)
messageBundle - The global translation message bundlerelay - Relay mapping helpertypeRegistry - The repository of mapped typesconverters - Repository of all registered InputConverters
and OutputConvertersinjectors - The repository of registered argument injectorstypeTransformer - Transformer used to pre-process the types (can be used to complete the missing generics etc)inclusionStrategy - The strategy that decides which input fields are acceptabletypeInfoGenerator - The generator for type names and descriptionspublic <T,S> T convertInput(S input,
AnnotatedType type,
ValueMapper valueMapper)
public AnnotatedType getMappableInputType(AnnotatedType type)
public List<InputConverter> getInputConverters()
Copyright © 2016–2018. All rights reserved.