public class GraphQLTypeRetriever
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLTypeRetriever() |
public graphql.schema.GraphQLType getGraphQLType(java.lang.Class<?> object,
ProcessingElementsContainer container,
boolean isInput)
throws GraphQLAnnotationsException,
CannotCastMemberException
GraphQLType based on the class type and annotationTypes.
- If its annotated with GraphQLUnion it will return a GraphQLUnionType
- If its annotated with GraphQLTypeResolver it will return a GraphQLInterfaceType
- It it's an Enum it will return a GraphQLEnumType,
otherwise it will return a GraphQLObjectType.object - the object class to examine*container - a class that hold several members that are required in order to build schemaisInput - true if the type is an input type, false otherwiseGraphQLType that represents that object classGraphQLAnnotationsException - if the object class cannot be examinedCannotCastMemberException - if the object class cannot be examinedpublic GraphQLObjectInfoRetriever getGraphQLObjectInfoRetriever()
public GraphQLInterfaceRetriever getGraphQLInterfaceRetriever()
public GraphQLFieldRetriever getGraphQLFieldRetriever()
public void setGraphQLObjectInfoRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
public void unsetGraphQLObjectInfoRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
public void setGraphQLInterfaceRetriever(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
public void unsetGraphQLInterfaceRetriever(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
public void setGraphQLFieldRetriever(GraphQLFieldRetriever graphQLFieldRetriever)
public void unsetGraphQLFieldRetriever(GraphQLFieldRetriever graphQLFieldRetriever)
public void setFieldSearchAlgorithm(SearchAlgorithm fieldSearchAlgorithm)
public void unsetFieldSearchAlgorithm(SearchAlgorithm fieldSearchAlgorithm)
public void setMethodSearchAlgorithm(SearchAlgorithm methodSearchAlgorithm)
public void unsetMethodSearchAlgorithm(SearchAlgorithm methodSearchAlgorithm)
public void setExtensionsHandler(GraphQLExtensionsHandler extensionsHandler)
public void unsetExtensionsHandler(GraphQLExtensionsHandler extensionsHandler)