@groovy.transform.CompileStatic class DefaultGraphQLInterceptorManager
Default implementation of GraphQLInterceptorManager that will also return a result if the class requested is a subclass of a class that exists in the registry. All interceptors for the exact class searched and any parent classes will be returned. Multiple interceptors for the same class can be registered. Example: registerInterceptor(Collection, interceptor1) registerInterceptor(Collection, interceptor2) registerInterceptor(List, interceptor3) If an ArrayList is being intercepted, all 3 interceptors will fire The resulting list will be sorted based on order. Implement the org.grails.datastore.mapping.core.Ordered trait to control the order of your interceptors.
Modifiers | Name | Description |
---|---|---|
protected java.util.Comparator |
interceptorComparator |
|
protected java.util.Map<java.lang.Class, java.util.List<GraphQLFetcherInterceptor>> |
interceptors |
|
protected java.util.List<GraphQLSchemaInterceptor> |
schemaInterceptors |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List<GraphQLFetcherInterceptor> |
getInterceptors(java.lang.Class clazz) @see GraphQLInterceptorManager#getInterceptors |
|
java.util.List<GraphQLSchemaInterceptor> |
getInterceptors() |
|
void |
registerInterceptor(java.lang.Class type, GraphQLFetcherInterceptor interceptor) @see GraphQLInterceptorManager#registerInterceptor |
|
void |
registerInterceptor(GraphQLSchemaInterceptor interceptor) |
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() |