@Component public class CustomScalarRegistryImpl extends Object implements CustomScalarRegistry
| Modifier and Type | Field and Description |
|---|---|
static CustomScalarRegistry |
customScalarRegistry
As we may have or not have Spring at runtime, we manually manage a singleton.
|
| Constructor and Description |
|---|
CustomScalarRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLScalarType |
getGraphQLScalarType(String graphQLTypeName)
Retrieves the registered
GraphQLScalarType for this GraphQL CustomScalar. |
void |
registerAllGraphQLScalarType()
This method registers all
GraphQLScalarType that are declared as Spring Component. |
void |
registerGraphQLScalarType(graphql.schema.GraphQLScalarType type)
Manually register one
GraphQLScalarType. |
public static CustomScalarRegistry customScalarRegistry
#getCustomScalarRegistry().public void registerAllGraphQLScalarType()
GraphQLScalarType that are declared as Spring Component. Another way to
register GraphQLScalarType is to call the CustomScalarRegistry.registerGraphQLScalarType(GraphQLScalarType).registerAllGraphQLScalarType in interface CustomScalarRegistrypublic void registerGraphQLScalarType(graphql.schema.GraphQLScalarType type)
GraphQLScalarType.registerGraphQLScalarType in interface CustomScalarRegistrypublic graphql.schema.GraphQLScalarType getGraphQLScalarType(String graphQLTypeName)
GraphQLScalarType for this GraphQL CustomScalar.getGraphQLScalarType in interface CustomScalarRegistryGraphQLScalarType, or null if no converter has been registered for the given nameCopyright © 2020. All rights reserved.