Class BatchLoaderAdapterFactory
- java.lang.Object
-
- io.leangen.graphql.generator.mapping.common.BatchLoaderAdapterFactory
-
- All Implemented Interfaces:
ResolverInterceptorFactory
public class BatchLoaderAdapterFactory extends Object implements ResolverInterceptorFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBatchLoaderAdapterFactory.BatchLoaderAdapter
-
Constructor Summary
Constructors Constructor Description BatchLoaderAdapterFactory(Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResolverInterceptor>getInterceptors(ResolverInterceptorFactoryParams params)Produces inner ResolverInterceptors, invoked around the resolver method.List<ResolverInterceptor>getOuterInterceptors(ResolverInterceptorFactoryParams params)Produces outer ResolverInterceptors, invoked around result conversion.
-
-
-
Constructor Detail
-
BatchLoaderAdapterFactory
public BatchLoaderAdapterFactory(Executor executor)
-
-
Method Detail
-
getInterceptors
public List<ResolverInterceptor> getInterceptors(ResolverInterceptorFactoryParams params)
Description copied from interface:ResolverInterceptorFactoryProduces inner ResolverInterceptors, invoked around the resolver method.Calling
ResolverInterceptor.Continuation.proceed(InvocationContext)produces the raw (unconverted) result.- Specified by:
getInterceptorsin interfaceResolverInterceptorFactory- Parameters:
params- Factory parameters- Returns:
- a list of outer interceptors
-
getOuterInterceptors
public List<ResolverInterceptor> getOuterInterceptors(ResolverInterceptorFactoryParams params)
Description copied from interface:ResolverInterceptorFactoryProduces outer ResolverInterceptors, invoked around result conversion.Calling
ResolverInterceptor.Continuation.proceed(InvocationContext)produces the converted result.- Specified by:
getOuterInterceptorsin interfaceResolverInterceptorFactory- Parameters:
params- Factory parameters- Returns:
- a list of outer interceptors
-
-