Uses of Interface
org.springframework.graphql.data.method.HandlerMethodArgumentResolver
Package
Description
Support for DataFetcher's based on handler methods typically annotated with
SchemaMapping
annotations.Resolvers for method parameters of annotated handler methods.
-
Uses of HandlerMethodArgumentResolver in org.springframework.graphql.data.method
Modifier and TypeClassDescriptionclass
Container for a list of resolvers that looks for one that supports a given method parameter type, and delegates to it.Modifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.getArgumentResolver
(MethodParameter parameter) Find a registeredHandlerMethodArgumentResolver
that supports the given method parameter.Modifier and TypeMethodDescriptionHandlerMethodArgumentResolverComposite.getResolvers()
Return a read-only list with the contained resolvers, or an empty list.Modifier and TypeMethodDescriptionvoid
HandlerMethodArgumentResolverComposite.addResolver
(HandlerMethodArgumentResolver resolver) Add the givenHandlerMethodArgumentResolver
. -
Uses of HandlerMethodArgumentResolver in org.springframework.graphql.data.method.annotation.support
Modifier and TypeClassDescriptionclass
Resolver for a method parameter that is annotated with@Argument
.class
Resolver for a method parameter that is annotated with@Arguments
, similar to whatArgumentMethodArgumentResolver
does but using the full fullGraphQL arguments
map as the source for binding to the target Object rather than a specific argument value within it.class
Resolver to obtainAuthentication.getPrincipal()
from Spring Security context viaSecurityContext.getAuthentication()
for parameters annotated withAuthenticationPrincipal
.class
Resolver for a@ContextValue
annotated method parameter.class
No-op resolver for method arguments of typeContinuation
.class
Resolver forDataFetchingEnvironment
and related values that can be accessed through theDataFetchingEnvironment
such as:GraphQLContext
DataFetchingFieldSelectionSet
Locale
orOptional<Locale>
as well as arguments of typeclass
Resolver for aDataLoader
obtained viaDataFetchingEnvironment.getDataLoader(String)
.class
Resolver for a@LocalContextValue
annotated method parameter.class
Resolver to obtainPrincipal
from Spring Security context viaSecurityContext.getAuthentication()
.class
Resolver for a method parameter that is an interface annotated with@ProjectedPayload
.class
class
Resolver for method arguments of typeSort
.class
Resolver for the source/parent of a field, obtained viaDataFetchingEnvironment.getSource()
.class
Resolver for a method argument of typeSubrange
initialized from "first", "last", "before", and "after" GraphQL arguments.Modifier and TypeMethodDescriptionvoid
AnnotatedControllerConfigurer.addCustomArgumentResolver
(HandlerMethodArgumentResolver resolver) Add aHandlerMethodArgumentResolver
for custom controller method arguments.