Package com.graphql_java_generator
Interface CustomScalarRegistry
- All Known Implementing Classes:
CustomScalarRegistryImpl
public interface CustomScalarRegistry
Registry for all
GraphQLScalarType available.- Author:
- EtienneSF
-
Method Summary
Modifier and Type Method Description graphql.schema.GraphQLScalarTypegetGraphQLScalarType(java.lang.String graphQLTypeName)Retrieves the registeredGraphQLScalarTypefor this GraphQL CustomScalar.voidregisterAllGraphQLScalarType()This method registers allGraphQLScalarTypethat are declared as SpringComponent.voidregisterGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType)Manually register oneGraphQLScalarType.
-
Method Details
-
registerAllGraphQLScalarType
void registerAllGraphQLScalarType()This method registers allGraphQLScalarTypethat are declared as SpringComponent. Another way to registerGraphQLScalarTypeis to call theregisterGraphQLScalarType(GraphQLScalarType). -
registerGraphQLScalarType
void registerGraphQLScalarType(graphql.schema.GraphQLScalarType graphQLScalarType)Manually register oneGraphQLScalarType.- Parameters:
graphQLScalarType-
-
getGraphQLScalarType
graphql.schema.GraphQLScalarType getGraphQLScalarType(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
-