Interface GenerateClientCodeConfiguration

All Superinterfaces:
CommonConfiguration, GenerateCodeCommonConfiguration
All Known Subinterfaces:
GeneratePojoConfiguration, GraphQLConfiguration

public interface GenerateClientCodeConfiguration extends GenerateCodeCommonConfiguration
This class contains all parameters for the generateClientCode goal/task.
Author:
etienne-sf
  • Field Details

    • DEFAULT_GENERATE_DEPRECATED_REQUEST_RESPONSE

      static final String DEFAULT_GENERATE_DEPRECATED_REQUEST_RESPONSE
      See Also:
  • Method Details

    • isGenerateDeprecatedRequestResponse

      boolean isGenerateDeprecatedRequestResponse()

      (since 1.7.1 version) Default value is _true_ for 1.x version, and _false_ for version 2.0 and after.

      If this parameter is set to true, the plugin generates a XxxxResponse class for each query/mutation/subscription, and (if separateUtilityClasses is true) Xxxx classes in the util subpackage. This allows to keep compatibility with code Developed with the 1.x versions of the plugin.

      The recommended way to use the plugin is to directly use the Xxxx query/mutation/subscription executor classes, where Xxxx is the query/mutation/subscription name defined in the GraphQL schema. To do this, set this parameter to _false_, and use the plugin as described in the wiki client page.

    • isGenerateJacksonAnnotations

      default boolean isGenerateJacksonAnnotations()
      This method is used only in GeneratePojoConfiguration.

      In client mode, the Jackson annotations are always generated

      Specified by:
      isGenerateJacksonAnnotations in interface CommonConfiguration
      Returns:
      The GeneratePojoConfiguration implementation of this method always returns true
      See Also:
    • logConfiguration

      default void logConfiguration()
      Logs all the configuration parameters (only when in the debug level)
      Specified by:
      logConfiguration in interface CommonConfiguration
      Specified by:
      logConfiguration in interface GenerateCodeCommonConfiguration