public class GraphQLOutputObjectRetriever
extends java.lang.Object
| Constructor and Description |
|---|
GraphQLOutputObjectRetriever() |
GraphQLOutputObjectRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever,
GraphQLFieldRetriever graphQLFieldRetriever) |
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLOutputType |
getOutputType(java.lang.Class<?> object,
ProcessingElementsContainer container)
This will examine the object and will return a
GraphQLOutputType based on the class type and annotationTypes. |
public GraphQLOutputObjectRetriever(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever, GraphQLFieldRetriever graphQLFieldRetriever)
public GraphQLOutputObjectRetriever()
public graphql.schema.GraphQLOutputType getOutputType(java.lang.Class<?> object,
ProcessingElementsContainer container)
throws GraphQLAnnotationsException,
CannotCastMemberException
GraphQLOutputType 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 schemaGraphQLOutputType that represents that object classGraphQLAnnotationsException - if the object class cannot be examinedCannotCastMemberException - if the object class cannot be examined