Class GraphQLTypeRetriever


  • public class GraphQLTypeRetriever
    extends java.lang.Object
    • Constructor Detail

      • GraphQLTypeRetriever

        public GraphQLTypeRetriever()
    • Method Detail

      • getGraphQLType

        public graphql.schema.GraphQLType getGraphQLType​(java.lang.Class<?> object,
                                                         ProcessingElementsContainer container,
                                                         boolean isInput)
                                                  throws GraphQLAnnotationsException,
                                                         CannotCastMemberException
        This will examine the object and will return a 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.
        Parameters:
        object - the object class to examine*
        container - a class that hold several members that are required in order to build schema
        isInput - true if the type is an input type, false otherwise
        Returns:
        a GraphQLType that represents that object class
        Throws:
        GraphQLAnnotationsException - if the object class cannot be examined
        CannotCastMemberException - if the object class cannot be examined
      • setGraphQLObjectInfoRetriever

        public void setGraphQLObjectInfoRetriever​(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
      • unsetGraphQLObjectInfoRetriever

        public void unsetGraphQLObjectInfoRetriever​(GraphQLObjectInfoRetriever graphQLObjectInfoRetriever)
      • setGraphQLInterfaceRetriever

        public void setGraphQLInterfaceRetriever​(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
      • unsetGraphQLInterfaceRetriever

        public void unsetGraphQLInterfaceRetriever​(GraphQLInterfaceRetriever graphQLInterfaceRetriever)
      • setGraphQLFieldRetriever

        public void setGraphQLFieldRetriever​(GraphQLFieldRetriever graphQLFieldRetriever)
      • unsetGraphQLFieldRetriever

        public void unsetGraphQLFieldRetriever​(GraphQLFieldRetriever graphQLFieldRetriever)
      • setFieldSearchAlgorithm

        public void setFieldSearchAlgorithm​(SearchAlgorithm fieldSearchAlgorithm)
      • unsetFieldSearchAlgorithm

        public void unsetFieldSearchAlgorithm​(SearchAlgorithm fieldSearchAlgorithm)
      • setMethodSearchAlgorithm

        public void setMethodSearchAlgorithm​(SearchAlgorithm methodSearchAlgorithm)
      • unsetMethodSearchAlgorithm

        public void unsetMethodSearchAlgorithm​(SearchAlgorithm methodSearchAlgorithm)