Class AbstractGenerateGraphQLSchemaMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- com.graphql_java_generator.mavenplugin.AbstractCommonMojo
-
- com.graphql_java_generator.mavenplugin.AbstractGenerateGraphQLSchemaMojo
-
- All Implemented Interfaces:
CommonConfiguration,GenerateGraphQLSchemaConfiguration,org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
GenerateGraphQLSchemaMojo
public abstract class AbstractGenerateGraphQLSchemaMojo extends AbstractCommonMojo implements GenerateGraphQLSchemaConfiguration
- Author:
- etienne-sf
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.maven.project.MavenProjectHelperprojectHelper-
Fields inherited from class com.graphql_java_generator.mavenplugin.AbstractCommonMojo
buildContext, ctx, enumPrefix, enumSuffix, inputPrefix, inputSuffix, interfacePrefix, interfaceSuffix, maxTokens, springConfigurationClass, typePrefix, typeSuffix, unionPrefix, unionSuffix
-
Fields inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
DEFAULT_ADD_RELAY_CONNECTIONS, DEFAULT_MAX_TOKENS, DEFAULT_PACKAGE_NAME, DEFAULT_PREFIX, DEFAULT_SCHEMA_FILE_FOLDER, DEFAULT_SCHEMA_FILE_PATTERN, DEFAULT_SKIP_GENERATION_IF_SCHEMA_HAS_NOT_CHANGED, DEFAULT_SUFFIX
-
Fields inherited from interface com.graphql_java_generator.plugin.conf.GenerateGraphQLSchemaConfiguration
DEFAULT_RESOURCE_ENCODING, DEFAULT_TARGET_FOLDER, DEFAULT_TARGET_SCHEMA_FILE_NAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecutePostExecutionTask()java.lang.StringgetResourceEncoding()java.io.FilegetSchemaFileFolder()java.lang.StringgetSchemaFilePattern()java.io.FilegetTargetFolder()java.lang.StringgetTargetSchemaFileName()java.util.Map<java.lang.String,java.lang.String>getTemplates()booleanisAddRelayConnections()-
Methods inherited from class com.graphql_java_generator.mavenplugin.AbstractCommonMojo
execute, getEnumPrefix, getEnumSuffix, getInputPrefix, getInputSuffix, getInterfacePrefix, getInterfaceSuffix, getMaxTokens, getProjectDir, getTypePrefix, getTypeSuffix, getUnionPrefix, getUnionSuffix, isSkipGenerationIfSchemaHasNotChanged
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.graphql_java_generator.plugin.conf.CommonConfiguration
getDefaultTargetSchemaFileName, getEnumPrefix, getEnumSuffix, getInputPrefix, getInputSuffix, getInterfacePrefix, getInterfaceSuffix, getMaxTokens, getProjectDir, getTypePrefix, getTypeSuffix, getUnionPrefix, getUnionSuffix, isGenerateJacksonAnnotations, isSkipGenerationIfSchemaHasNotChanged, logCommonConfiguration
-
Methods inherited from interface com.graphql_java_generator.plugin.conf.GenerateGraphQLSchemaConfiguration
logConfiguration
-
-
-
-
Method Detail
-
getSchemaFileFolder
public java.io.File getSchemaFileFolder()
- Specified by:
getSchemaFileFolderin interfaceCommonConfiguration- Overrides:
getSchemaFileFolderin classAbstractCommonMojo
-
getSchemaFilePattern
public java.lang.String getSchemaFilePattern()
- Specified by:
getSchemaFilePatternin interfaceCommonConfiguration- Overrides:
getSchemaFilePatternin classAbstractCommonMojo
-
getResourceEncoding
public java.lang.String getResourceEncoding()
- Specified by:
getResourceEncodingin interfaceGenerateGraphQLSchemaConfiguration
-
getTargetFolder
public java.io.File getTargetFolder()
- Specified by:
getTargetFolderin interfaceGenerateGraphQLSchemaConfiguration
-
getTargetSchemaFileName
public java.lang.String getTargetSchemaFileName()
- Specified by:
getTargetSchemaFileNamein interfaceGenerateGraphQLSchemaConfiguration
-
getTemplates
public java.util.Map<java.lang.String,java.lang.String> getTemplates()
- Specified by:
getTemplatesin interfaceCommonConfiguration- Overrides:
getTemplatesin classAbstractCommonMojo
-
isAddRelayConnections
public boolean isAddRelayConnections()
- Specified by:
isAddRelayConnectionsin interfaceCommonConfiguration
-
executePostExecutionTask
protected void executePostExecutionTask() throws java.io.IOException- Overrides:
executePostExecutionTaskin classAbstractCommonMojo- Throws:
java.io.IOException
-
-