Class GraphQLServerUtils

java.lang.Object
com.graphql_java_generator.server.util.GraphQLServerUtils

@Component public class GraphQLServerUtils extends Object
A class that contains utility method for the server mode
Author:
etienne-sf
  • Constructor Details

    • GraphQLServerUtils

      public GraphQLServerUtils()
  • Method Details

    • classNameExtractor

      public String classNameExtractor(Class<?> cls)
      Implementation of a ClassNameTypeResolver to manage the possible prefix and suffix on the generated POJOs.
      Parameters:
      cls - The class which name must be retrieved
      Returns:
      The GraphQL type name that matches this class