Package se.l4.graphql.binding.internal
Class InterfaceAndUnionConversion
java.lang.Object
se.l4.graphql.binding.internal.InterfaceAndUnionConversion
public class InterfaceAndUnionConversion extends Object
Helper for creating conversions between a Java interface and a GraphQL
interface.
-
Constructor Summary
Constructors Constructor Description InterfaceAndUnionConversion()
-
Method Summary
Modifier and Type Method Description void
add(se.l4.commons.types.reflect.TypeRef input, se.l4.commons.types.reflect.TypeRef output, DataFetchingConversion<?,?> conversion)
List<GraphQLOutputResolver>
createResolvers()
Create the resolvers based on the implementations of the interfaces that have been found.void
trackUnionOrInterface(se.l4.commons.types.reflect.TypeRef type)
-
Constructor Details
-
InterfaceAndUnionConversion
public InterfaceAndUnionConversion()
-
-
Method Details
-
trackUnionOrInterface
public void trackUnionOrInterface(se.l4.commons.types.reflect.TypeRef type) -
add
public void add(se.l4.commons.types.reflect.TypeRef input, se.l4.commons.types.reflect.TypeRef output, DataFetchingConversion<?,?> conversion) -
createResolvers
Create the resolvers based on the implementations of the interfaces that have been found.- Returns:
-