Interface CustomScalarRegistry
-
public interface CustomScalarRegistryRegistry for allGraphQLScalarTypeavailable.- Author:
- etienne-sf
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomScalargetCustomScalar(java.lang.String graphQLTypeName)Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.graphql.schema.GraphQLScalarTypegetGraphQLCustomScalarType(java.lang.String graphQLTypeName)Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.voidregisterGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType, java.lang.Class<?> valueClazz)Manually register oneGraphQLScalarType.
-
-
-
Method Detail
-
registerGraphQLScalarType
void registerGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType, java.lang.Class<?> valueClazz)Manually register oneGraphQLScalarType.- Parameters:
graphQLScalarType-valueClazz- The java The java type that will contain values for this custom scalar. This is needed to properly create the data from the value read in a string, especially when reading a GraphQL request, when in client mode
-
getGraphQLCustomScalarType
graphql.schema.GraphQLScalarType getGraphQLCustomScalarType(java.lang.String graphQLTypeName)
Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.- Parameters:
graphQLTypeName-- Returns:
- the
GraphQLScalarType, or null if no converter has been registered for the given name
-
getCustomScalar
CustomScalar getCustomScalar(java.lang.String graphQLTypeName)
Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.- Parameters:
graphQLTypeName-- Returns:
- the
GraphQLScalarType, or null if no converter has been registered for the given name
-
-