Class GraphQlContextAccessor
java.lang.Object
org.springframework.graphql.execution.GraphQlContextAccessor
- All Implemented Interfaces:
io.micrometer.context.ContextAccessor<graphql.GraphQLContext, graphql.GraphQLContext>
public class GraphQlContextAccessor
extends Object
implements io.micrometer.context.ContextAccessor<graphql.GraphQLContext, graphql.GraphQLContext>
ContextAccessor that enables support for reading and writing values
to and from a GraphQLContext. This accessor is automatically
registered via ServiceLoader.- Since:
- 1.1.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends graphql.GraphQLContext> <T> TvoidreadValues(graphql.GraphQLContext context, Predicate<Object> keyPredicate, Map<Object, Object> readValues) Class<? extends graphql.GraphQLContext> graphql.GraphQLContextwriteValues(Map<Object, Object> valuesToWrite, graphql.GraphQLContext targetContext)
-
Constructor Details
-
GraphQlContextAccessor
public GraphQlContextAccessor()
-
-
Method Details
-
readableType
- Specified by:
readableTypein interfaceio.micrometer.context.ContextAccessor<graphql.GraphQLContext, graphql.GraphQLContext>
-
readValues
-
readValue
- Specified by:
readValuein interfaceio.micrometer.context.ContextAccessor<graphql.GraphQLContext, graphql.GraphQLContext>
-
writeableType
- Specified by:
writeableTypein interfaceio.micrometer.context.ContextAccessor<graphql.GraphQLContext, graphql.GraphQLContext>
-
writeValues
-