Class PublicResolverBuilder
- java.lang.Object
-
- io.leangen.graphql.metadata.strategy.query.AbstractResolverBuilder
-
- io.leangen.graphql.metadata.strategy.query.PublicResolverBuilder
-
- All Implemented Interfaces:
ResolverBuilder
- Direct Known Subclasses:
AnnotatedResolverBuilder
,BeanResolverBuilder
public class PublicResolverBuilder extends AbstractResolverBuilder
A resolver builder that exposes all public methods
-
-
Field Summary
-
Fields inherited from class io.leangen.graphql.metadata.strategy.query.AbstractResolverBuilder
argumentBuilder, filters, methodInvokerFactory, operationInfoGenerator, propertyElementReducer
-
Fields inherited from interface io.leangen.graphql.metadata.strategy.query.ResolverBuilder
ACCEPT_ALL
-
-
Constructor Summary
Constructors Constructor Description PublicResolverBuilder()
PublicResolverBuilder(String... basePackages)
-
Method Summary
-
Methods inherited from class io.leangen.graphql.metadata.strategy.query.AbstractResolverBuilder
getFieldType, getFilters, getReturnType, mergePropertyElements, withDefaultFilters, withFilters, withMethodInvokerFactory, withOperationInfoGenerator, withPropertyElementReducer, withResolverArgumentBuilder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.leangen.graphql.metadata.strategy.query.ResolverBuilder
supports
-
-
-
-
Constructor Detail
-
PublicResolverBuilder
public PublicResolverBuilder()
-
PublicResolverBuilder
public PublicResolverBuilder(String... basePackages)
-
-
Method Detail
-
withBasePackages
public PublicResolverBuilder withBasePackages(String... basePackages)
-
withJavaDeprecationRespected
public PublicResolverBuilder withJavaDeprecationRespected(boolean javaDeprecation)
Sets whether theDeprecated
annotation should map to GraphQL deprecation- Parameters:
javaDeprecation
- Whether theDeprecated
maps to GraphQL deprecation- Returns:
- This builder instance to allow chained calls
-
withJavaDeprecation
public PublicResolverBuilder withJavaDeprecation(JavaDeprecationMappingConfig javaDeprecationConfig)
Sets whether and how theDeprecated
annotation should map to GraphQL deprecation- Parameters:
javaDeprecationConfig
- Configures if and howDeprecated
maps to GraphQL deprecation- Returns:
- This builder instance to allow chained calls
-
buildQueryResolvers
public Collection<Resolver> buildQueryResolvers(ResolverBuilderParams params)
-
buildMutationResolvers
public Collection<Resolver> buildMutationResolvers(ResolverBuilderParams params)
-
buildSubscriptionResolvers
public Collection<Resolver> buildSubscriptionResolvers(ResolverBuilderParams params)
-
isQuery
protected boolean isQuery(Method method, ResolverBuilderParams params)
-
isQuery
protected boolean isQuery(Field field, ResolverBuilderParams params)
-
isQuery
protected boolean isQuery(Property property, ResolverBuilderParams params)
-
isMutation
protected boolean isMutation(Method method, ResolverBuilderParams params)
-
isSubscription
protected boolean isSubscription(Method method, ResolverBuilderParams params)
-
isPackageAcceptable
protected boolean isPackageAcceptable(Member method, ResolverBuilderParams params)
-
-