@groovy.transform.CompileStatic class DefaultGraphQLDataBinderManager
A default implementation of GraphQLDataBinderManager that will also return a result if the class requested is a subclass of a class that exists in the registry. The order of which binders are registered is relevant to their resolution. The items added last have priority when searching for subclass matches. Example: register(Collection) register(List) When the binder is searched for ArrayList, List will be returned.
Modifiers | Name | Description |
---|---|---|
protected java.util.Map<java.lang.Class, GraphQLDataBinder> |
dataBinders |
Constructor and description |
---|
DefaultGraphQLDataBinderManager
() Registers a default data binder for the Object class |
DefaultGraphQLDataBinderManager
(GraphQLDataBinder defaultDataBinder) Registers a the data binder provided for the Object class |
Type Params | Return Type | Name and description |
---|---|---|
|
GraphQLDataBinder |
getDataBinder(java.lang.Class clazz) @see GraphQLDataBinderManager#getDataBinder |
|
void |
registerDataBinder(java.lang.Class clazz, GraphQLDataBinder dataBinder) @see GraphQLDataBinderManager#registerDataBinder |
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() |
Registers a default data binder for the Object class
Registers a the data binder provided for the Object class