@groovy.transform.CompileStatic class DefaultGraphQLDataFetcherManager
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, DataFetcher>> |
dataFetchers |
Constructor and description |
---|
DefaultGraphQLDataFetcherManager
() |
DefaultGraphQLDataFetcherManager
(java.util.Map<GraphQLDataFetcherType, DataFetcher> defaultFetchers) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Optional<BindingGormDataFetcher> |
getBindingFetcher(PersistentEntity entity, GraphQLDataFetcherType type) |
|
protected DataFetcher |
getCustomFetcher(java.lang.Class clazz, GraphQLDataFetcherType type) |
|
protected java.util.Optional<DataFetcher> |
getCustomFetcher(PersistentEntity entity, GraphQLDataFetcherType type) |
|
java.util.Optional<DeletingGormDataFetcher> |
getDeletingFetcher(PersistentEntity entity) |
|
java.util.Optional<ReadingGormDataFetcher> |
getReadingFetcher(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, DataFetcher fetcher, GraphQLDataFetcherType type) |
|
void |
registerReadingDataFetcher(java.lang.Class clazz, ReadingGormDataFetcher fetcher) |
|
protected void |
verifyFetcher(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() |