Interface CustomScalarRegistry
- All Known Implementing Classes:
CustomScalarRegistryImpl
public interface CustomScalarRegistry
Registry for all
GraphQLScalarType
available.- Author:
- etienne-sf
-
Method Summary
Modifier and TypeMethodDescriptiongetCustomScalar
(String graphQLTypeName) Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.graphql.schema.GraphQLScalarType
getGraphQLCustomScalarType
(String graphQLTypeName) Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.void
registerGraphQLScalarType
(graphql.schema.GraphQLScalarType graphQLScalarType, Class<?> valueClazz) Manually register oneGraphQLScalarType
.
-
Method Details
-
registerGraphQLScalarType
void registerGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType, 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
Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.- Parameters:
graphQLTypeName
-- Returns:
- the
GraphQLScalarType
, or null if no converter has been registered for the given name
-
getCustomScalar
Retrieves the registeredGraphQLScalarType
for this GraphQL CustomScalar.- Parameters:
graphQLTypeName
-- Returns:
- the
GraphQLScalarType
, or null if no converter has been registered for the given name
-