Class SpecificScalarResolver
java.lang.Object
se.l4.graphql.binding.internal.resolvers.SpecificScalarResolver
- All Implemented Interfaces:
GraphQLResolver
,GraphQLInputResolver
,TypedGraphQLInputResolver
,GraphQLOutputResolver
,TypedGraphQLOutputResolver
,TypedGraphQLResolver
public class SpecificScalarResolver extends Object implements TypedGraphQLOutputResolver, TypedGraphQLInputResolver
Custom resolver that is registered whenever a scalar that uses
GraphQLScalarConversion
is added.-
Constructor Summary
Constructors Constructor Description SpecificScalarResolver(se.l4.commons.types.reflect.TypeRef javaType, se.l4.commons.types.reflect.TypeRef graphQLType, GraphQLScalarResolver<?,?> scalar)
-
Method Summary
Modifier and Type Method Description Class<?>
getType()
Get the type this resolver works on.ResolvedGraphQLType<? extends graphql.schema.GraphQLInputType>
resolveInput(GraphQLInputEncounter encounter)
Resolve theGraphQLInputType
of the given type.ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType>
resolveOutput(GraphQLOutputEncounter encounter)
Resolve theGraphQLType
of the given type.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface se.l4.graphql.binding.resolver.input.TypedGraphQLInputResolver
supportsInput
Methods inherited from interface se.l4.graphql.binding.resolver.output.TypedGraphQLOutputResolver
supportsOutput
-
Constructor Details
-
SpecificScalarResolver
public SpecificScalarResolver(se.l4.commons.types.reflect.TypeRef javaType, se.l4.commons.types.reflect.TypeRef graphQLType, GraphQLScalarResolver<?,?> scalar)
-
-
Method Details
-
getType
Description copied from interface:TypedGraphQLResolver
Get the type this resolver works on.- Specified by:
getType
in interfaceTypedGraphQLResolver
- Returns:
-
resolveOutput
public ResolvedGraphQLType<? extends graphql.schema.GraphQLOutputType> resolveOutput(GraphQLOutputEncounter encounter)Description copied from interface:GraphQLOutputResolver
Resolve theGraphQLType
of the given type.- Specified by:
resolveOutput
in interfaceGraphQLOutputResolver
- Returns:
-
resolveInput
public ResolvedGraphQLType<? extends graphql.schema.GraphQLInputType> resolveInput(GraphQLInputEncounter encounter)Description copied from interface:GraphQLInputResolver
Resolve theGraphQLInputType
of the given type.- Specified by:
resolveInput
in interfaceGraphQLInputResolver
- Returns:
-
toString
-