Class GraphQLExtension
java.lang.Object
com.graphql_java_generator.gradleplugin.CommonExtension
com.graphql_java_generator.gradleplugin.GenerateCodeCommon
com.graphql_java_generator.gradleplugin.GenerateServerCodeExtension
com.graphql_java_generator.gradleplugin.GraphQLExtension
- All Implemented Interfaces:
com.graphql_java_generator.plugin.conf.CommonConfiguration,com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration,com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration,com.graphql_java_generator.plugin.conf.GenerateServerCodeConfiguration,com.graphql_java_generator.plugin.conf.GraphQLConfiguration,java.io.Serializable
public class GraphQLExtension extends GenerateServerCodeExtension implements com.graphql_java_generator.plugin.conf.GraphQLConfiguration, java.io.Serializable
Parameters for the GraphQL Gradle plugin.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.graphql_java_generator.gradleplugin.GenerateServerCodeExtension
javaTypeForIDTypeFields inherited from class com.graphql_java_generator.gradleplugin.CommonExtension
addRelayConnections, projectFields inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
DEFAULT_ADD_RELAY_CONNECTIONS, DEFAULT_PACKAGE_NAME, DEFAULT_SCHEMA_FILE_FOLDER, DEFAULT_SCHEMA_FILE_PATTERNFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
DEFAULT_GENERATE_DEPRECATED_REQUEST_RESPONSEFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
DEFAULT_COPY_RUNTIME_SOURCES, DEFAULT_SOURCE_ENCODING, DEFAULT_TARGET_RESOURCE_FOLDER, DEFAULT_TARGET_SOURCE_FOLDERFields inherited from interface com.graphql_java_generator.plugin.conf.GenerateServerCodeConfiguration
DEFAULT_GENERATE_BATCH_LOADER_ENVIRONMENT, DEFAULT_GENERATE_JPA_ANNOTATION, DEFAULT_JAVA_TYPE_FOR_ID_TYPE, DEFAULT_SCAN_BASE_PACKAGES, DEFAULT_SCHEMA_PERSONALIZATION_FILE, DEFAULT_SEPARATE_UTIL_CLASSES -
Constructor Summary
Constructors Constructor Description GraphQLExtension(org.gradle.api.Project project) -
Method Summary
Modifier and Type Method Description com.graphql_java_generator.plugin.conf.PluginModegetMode()The mode is forced toPluginMode.serverbooleanisGenerateDeprecatedRequestResponse()voidsetGenerateDeprecatedRequestResponse(boolean generateDeprecatedRequestResponse)voidsetMode(com.graphql_java_generator.plugin.conf.PluginMode mode)Methods inherited from class com.graphql_java_generator.gradleplugin.GenerateServerCodeExtension
getJavaTypeForIDType, getPackaging, getScanBasePackages, getSchemaPersonalizationFile, getTargetSourceFolder, isGenerateBatchLoaderEnvironment, isGenerateJPAAnnotation, setGenerateBatchLoaderEnvironment, setGenerateJPAAnnotation, setJavaTypeForIDType, setScanBasePackages, setSchemaPersonalizationFileMethods inherited from class com.graphql_java_generator.gradleplugin.GenerateCodeCommon
getCustomScalars, getPackageName, getSourceEncoding, getTargetClassFolder, getTargetResourceFolder, isCopyRuntimeSources, isSeparateUtilityClasses, setCopyRuntimeSources, setCustomScalars, setPackageName, setSeparateUtilityClasses, setSourceEncodingMethods inherited from class com.graphql_java_generator.gradleplugin.CommonExtension
getPluginLogger, getSchemaFileFolder, getSchemaFilePattern, getTemplates, isAddRelayConnections, logConfiguration, setAddRelayConnections, setSchemaFileFolder, setSchemaFilePattern, setTemplatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
getDefaultTargetSchemaFileName, getPluginLogger, getSchemaFileFolder, getSchemaFilePattern, getTemplates, isAddRelayConnections, logCommonConfigurationMethods inherited from interface com.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration
getCustomScalars, getPackageName, getSourceEncoding, getTargetClassFolder, getTargetResourceFolder, getTargetSourceFolder, isCopyRuntimeSources, isSeparateUtilityClasses, logGenerateCodeCommonConfigurationMethods inherited from interface com.graphql_java_generator.plugin.conf.GenerateServerCodeConfiguration
getJavaTypeForIDType, getPackaging, getQuotedScanBasePackages, getScanBasePackages, getSchemaPersonalizationFile, isGenerateBatchLoaderEnvironment, isGenerateJPAAnnotation, logConfiguration, logGenerateServerCodeConfiguration
-
Constructor Details
-
GraphQLExtension
public GraphQLExtension(org.gradle.api.Project project)
-
-
Method Details
-
isGenerateDeprecatedRequestResponse
public boolean isGenerateDeprecatedRequestResponse()- Specified by:
isGenerateDeprecatedRequestResponsein interfacecom.graphql_java_generator.plugin.conf.GenerateClientCodeConfiguration
-
setGenerateDeprecatedRequestResponse
public void setGenerateDeprecatedRequestResponse(boolean generateDeprecatedRequestResponse) -
getMode
public com.graphql_java_generator.plugin.conf.PluginMode getMode()Description copied from class:GenerateServerCodeExtensionThe mode is forced toPluginMode.server- Specified by:
getModein interfacecom.graphql_java_generator.plugin.conf.GenerateCodeCommonConfiguration- Overrides:
getModein classGenerateServerCodeExtension
-
setMode
public void setMode(com.graphql_java_generator.plugin.conf.PluginMode mode)
-