Class ConverterRegistry
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.ConverterRegistry
-
public class ConverterRegistry extends Object
- Author:
- Bojan Tomic (kaqqao)
-
-
Constructor Summary
Constructors Constructor Description ConverterRegistry(List<InputConverter> inputConverters, List<OutputConverter> outputConverters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
InputConverter<T,S>getInputConverter(AnnotatedType inputType)List<InputConverter>getInputConverters()AnnotatedTypegetMappableInputType(AnnotatedType type)<T,S>
OutputConverter<T,S>getOutputConverter(AnnotatedElement element, AnnotatedType outputType)List<OutputConverter>getOutputConverters()ConverterRegistryoptimize(List<TypedElement> elements)
-
-
-
Constructor Detail
-
ConverterRegistry
public ConverterRegistry(List<InputConverter> inputConverters, List<OutputConverter> outputConverters)
-
-
Method Detail
-
getInputConverters
public List<InputConverter> getInputConverters()
-
getInputConverter
public <T,S> InputConverter<T,S> getInputConverter(AnnotatedType inputType)
-
getOutputConverter
public <T,S> OutputConverter<T,S> getOutputConverter(AnnotatedElement element, AnnotatedType outputType)
-
getOutputConverters
public List<OutputConverter> getOutputConverters()
-
getMappableInputType
public AnnotatedType getMappableInputType(AnnotatedType type)
-
optimize
public ConverterRegistry optimize(List<TypedElement> elements)
-
-