Class DefaultTypeFunction

  • All Implemented Interfaces:
    TypeFunction

    public class DefaultTypeFunction
    extends java.lang.Object
    implements TypeFunction
    • Method Detail

      • canBuildType

        public boolean canBuildType​(java.lang.Class<?> aClass,
                                    java.lang.reflect.AnnotatedType annotatedType)
        Description copied from interface: TypeFunction
        Get whether this builder handles the given type.
        Specified by:
        canBuildType in interface TypeFunction
        Parameters:
        aClass - The java type to build the type name for
        annotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}
        Returns:
        True if this builder can build the type
      • activate

        public void activate()
      • buildType

        public graphql.schema.GraphQLType buildType​(boolean input,
                                                    java.lang.Class<?> aClass,
                                                    java.lang.reflect.AnnotatedType annotatedType,
                                                    ProcessingElementsContainer container)
        Description copied from interface: TypeFunction
        Build a GraphQLType object from a java type.
        Specified by:
        buildType in interface TypeFunction
        Parameters:
        input - is InputType
        aClass - The java type to build the type name for
        annotatedType - The AnnotatedType of the java type, which may be a {link AnnotatedParameterizedType}
        container - a class that hold several members that are required in order to build schema
        Returns:
        The built GraphQLType
      • setGraphQLInputProcessor

        public void setGraphQLInputProcessor​(GraphQLInputProcessor graphQLInputProcessor)
      • unsetGraphQLInputProcessor

        public void unsetGraphQLInputProcessor​(GraphQLInputProcessor graphQLInputProcessor)
      • setGraphQLOutputProcessor

        public void setGraphQLOutputProcessor​(GraphQLOutputProcessor graphQLOutputProcessor)
      • unsetGraphQLOutputProcessor

        public void unsetGraphQLOutputProcessor​(GraphQLOutputProcessor graphQLOutputProcessor)