Class AbstractCommonMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.graphql_java_generator.mavenplugin.AbstractCommonMojo
All Implemented Interfaces:
CommonConfiguration, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AbstractGenerateCodeCommonMojo, AbstractGenerateGraphQLSchemaMojo

public abstract class AbstractCommonMojo extends org.apache.maven.plugin.AbstractMojo implements CommonConfiguration
This class is the super class of all Mojos. It contains all parameters that are common to all goals, and the execute() method.
This avoids to redeclare each common parameter in each Mojo, including its comment. When a comment is updated, only one update is necessary, instead of updating it in each Mojo.
Author:
etienne-sf
  • Field Details

    • buildContext

      @Component protected org.sonatype.plexus.build.incremental.BuildContext buildContext
      The Maven BuildContext that allows to link the build with the IDE
    • projectHelper

      @Component protected org.apache.maven.project.MavenProjectHelper projectHelper
    • unionSuffix

      @Parameter(property="com.graphql_java_generator.mavenplugin.unionSuffix", defaultValue="") public String unionSuffix
      An optional suffix to add to the classnames of the generated java classes for GraphQL unions. The suffix is added at the end of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • enumPrefix

      @Parameter(property="com.graphql_java_generator.mavenplugin.enumPrefix", defaultValue="") public String enumPrefix
      An optional prefix to add to the classnames of the generated java classes for GraphQL enums. The prefix is added at the beginning of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • enumSuffix

      @Parameter(property="com.graphql_java_generator.mavenplugin.enumSuffix", defaultValue="") public String enumSuffix
      An optional suffix to add to the classnames of the generated java classes for GraphQL enums. The suffix is added at the end of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • interfacePrefix

      @Parameter(property="com.graphql_java_generator.mavenplugin.interfacePrefix", defaultValue="") public String interfacePrefix
      An optional prefix to add to the classnames of the generated java classes for GraphQL interfaces. The prefix is added at the beginning of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • interfaceSuffix

      @Parameter(property="com.graphql_java_generator.mavenplugin.interfaceSuffix", defaultValue="") public String interfaceSuffix
      An optional suffix to add to the classnames of the generated java classes for GraphQL interfaces. The suffix is added at the end of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • inputPrefix

      @Parameter(property="com.graphql_java_generator.mavenplugin.inputPrefix", defaultValue="") public String inputPrefix
      An optional prefix to add to the classnames of the generated java classes for GraphQL input objects. The prefix is added at the beginning of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • inputSuffix

      @Parameter(property="com.graphql_java_generator.mavenplugin.javaClassSuffix", defaultValue="") public String inputSuffix
      An optional suffix to add to the classnames of the generated java classes for GraphQL input objects. The suffix is added at the end of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • jsonGraphqlSchemaFilename

      @Parameter(property="com.graphql_java_generator.mavenplugin.jsonGraphqlSchemaFilename", defaultValue="") public String jsonGraphqlSchemaFilename
    • maxTokens

      @Parameter(property="com.graphql_java_generator.mavenplugin.maxTokens", defaultValue="2147483647") public Integer maxTokens
      (Useless, since 1.18.7)Defines the options that maximum number of tokens that the GraphQL schema parser may read. The default value is Integer.MAX_VALUE (=2147483647). If the schema contains more than maxTokens, the build will fail with an error.
    • typePrefix

      @Parameter(property="com.graphql_java_generator.mavenplugin.typePrefix", defaultValue="") public String typePrefix
      An optional prefix to add to the classnames of the generated java classes for GraphQL types. The prefix is added at the beginning of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • typeSuffix

      @Parameter(property="com.graphql_java_generator.mavenplugin.typeSuffix", defaultValue="") public String typeSuffix
      An optional suffix to add to the classnames of the generated java classes for GraphQL types. The suffix is added at the end of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • unionPrefix

      @Parameter(property="com.graphql_java_generator.mavenplugin.unionPrefix", defaultValue="") public String unionPrefix
      An optional prefix to add to the classnames of the generated java classes for GraphQL unions. The prefix is added at the beginning of the java classname, and must be compatible with java naming rules (no space, dot, comma, etc.)
    • springConfigurationClass

      protected final Class<?> springConfigurationClass
      This class contains the Spring configuration for the actual instance of this Mojo. It's set by subclasses, through the constructor
    • ctx

      protected org.springframework.context.annotation.AnnotationConfigApplicationContext ctx
      The Spring context used for the plugin execution. It contains all the beans that runs for its execution
  • Method Details