Uses of Class
org.springframework.graphql.data.method.HandlerMethod
Package
Description
Integration for Apollo federation that provides a
FederationSchemaFactory
to
set up the schema with, and supports the fetching of federated types
via @EntityMapping
controller methods.Support for DataFetcher's based on handler methods typically annotated with
SchemaMapping
annotations.Resolvers for method parameters of annotated handler methods.
-
Uses of HandlerMethod in org.springframework.graphql.data.federation
Modifier and TypeMethodDescriptionprotected HandlerMethod
FederationSchemaFactory.getHandlerMethod
(FederationSchemaFactory.EntityMappingInfo mappingInfo) RepresentationException.getHandlerMethod()
Return the mapped controller method, ornull
if it could not be mapped.FederationSchemaFactory.EntityMappingInfo.handlerMethod()
Returns the value of thehandlerMethod
record component.ModifierConstructorDescriptionEntityMappingInfo
(String typeName, HandlerMethod handlerMethod) Creates an instance of aEntityMappingInfo
record class.RepresentationException
(Map<String, Object> representation, HandlerMethod hm, String msg) RepresentationNotResolvedException
(Map<String, Object> representation, HandlerMethod handlerMethod) -
Uses of HandlerMethod in org.springframework.graphql.data.method
Modifier and TypeClassDescriptionclass
Extension ofHandlerMethod
that adds support for invoking the underlying handler methods.Modifier and TypeMethodDescriptionHandlerMethod.createWithResolvedBean()
If the provided instance contains a bean name rather than an object instance, the bean name is resolved before aHandlerMethod
is created and returned.ModifierConstructorDescriptionprotected
HandlerMethod
(HandlerMethod handlerMethod) Copy constructor for use from subclasses that accept more arguments.protected
InvocableHandlerMethodSupport
(HandlerMethod handlerMethod, Executor executor) Deprecated, for removal: This API element is subject to removal in a future version.in favor of alternative constructorprotected
InvocableHandlerMethodSupport
(HandlerMethod handlerMethod, Executor executor, boolean invokeAsync) Create an instance. -
Uses of HandlerMethod in org.springframework.graphql.data.method.annotation.support
Modifier and TypeClassDescriptionclass
An extension ofHandlerMethod
for annotated handler methods adapted toBatchLoaderWithContext
orMappedBatchLoaderWithContext
with the list of keys andBatchLoaderEnvironment
as their input.class
Invocable handler to use as aDataFetcher
.class
Extension ofInvocableHandlerMethodSupport
for handler methods that resolve argument values from aDataFetchingEnvironment
.Modifier and TypeMethodDescriptionprotected HandlerMethod
AnnotatedControllerDetectionSupport.createHandlerMethod
(Method originalMethod, Object handler, Class<?> handlerType) protected HandlerMethod
AnnotatedControllerConfigurer.getHandlerMethod
(DataFetcherMappingInfo mappingInfo) protected abstract HandlerMethod
AnnotatedControllerDetectionSupport.getHandlerMethod
(M mappingInfo) DataFetcherMappingInfo.getHandlerMethod()
The controller method to use for data fetching.Modifier and TypeMethodDescriptionprotected boolean
AnnotatedControllerDetectionSupport.shouldInvokeAsync
(HandlerMethod handlerMethod) Modifier and TypeMethodDescriptionvoid
AnnotatedControllerDetectionSupport.setBlockingMethodPredicate
(Predicate<HandlerMethod> predicate) Configure a predicate to decide which controller methods are blocking.ModifierConstructorDescriptionBatchLoaderHandlerMethod
(HandlerMethod handlerMethod, Executor executor) Deprecated, for removal: This API element is subject to removal in a future version.in favor of alternative constructorBatchLoaderHandlerMethod
(HandlerMethod handlerMethod, Executor executor, boolean invokeAsync) Create an instance.DataFetcherHandlerMethod
(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, BiConsumer<Object, Object[]> validationHelper, Executor executor, boolean subscription) Deprecated, for removal: This API element is subject to removal in a future version.in favor of alternative constructorDataFetcherHandlerMethod
(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, BiConsumer<Object, Object[]> validationHelper, Executor executor, boolean invokeAsync, boolean subscription) Constructor with a parent handler method.protected
DataFetcherHandlerMethodSupport
(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, Executor executor, boolean invokeAsync) DataFetcherMappingInfo
(String typeName, String field, boolean batchMapping, int maxBatchSize, HandlerMethod handlerMethod)