@groovy.transform.CompileStatic class DefaultGraphQLDataFetcherManager extends java.lang.Object implements GraphQLDataFetcherManager
A default implementation of GraphQLDataFetcherManager. When retrieving fetcher instances, the exact class provided will be searched for. If a parent class is registered and a subclass is searched, the parent class fetcher will not be returned. If no fetchers are found, the optional provided default fetchers will be searched. If no default fetchers are provided, null will be returned.
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.Class, java.util.Map<GraphQLDataFetcherType, graphql.schema.DataFetcher>> |
dataFetchers |
Constructor and description |
---|
DefaultGraphQLDataFetcherManager
() |
DefaultGraphQLDataFetcherManager
(java.util.Map<GraphQLDataFetcherType, graphql.schema.DataFetcher> defaultFetchers) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Optional<BindingGormDataFetcher> |
getBindingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity, GraphQLDataFetcherType type) |
|
protected graphql.schema.DataFetcher |
getCustomFetcher(java.lang.Class clazz, GraphQLDataFetcherType type) |
|
protected java.util.Optional<graphql.schema.DataFetcher> |
getCustomFetcher(org.grails.datastore.mapping.model.PersistentEntity entity, GraphQLDataFetcherType type) |
|
java.util.Optional<DeletingGormDataFetcher> |
getDeletingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity) |
|
java.util.Optional<ReadingGormDataFetcher> |
getReadingFetcher(org.grails.datastore.mapping.model.PersistentEntity entity, GraphQLDataFetcherType type) |
|
void |
registerBindingDataFetcher(java.lang.Class clazz, BindingGormDataFetcher fetcher) |
|
void |
registerDeletingDataFetcher(java.lang.Class clazz, DeletingGormDataFetcher fetcher) |
|
protected void |
registerFetcher(java.lang.Class clazz, graphql.schema.DataFetcher fetcher, GraphQLDataFetcherType type) |
|
void |
registerReadingDataFetcher(java.lang.Class clazz, ReadingGormDataFetcher fetcher) |
|
protected void |
verifyFetcher(graphql.schema.DataFetcher instance, java.lang.Class requiredType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |