Class GenerateCodeGenerator
java.lang.Object
com.graphql_java_generator.plugin.generate_code.GenerateCodeGenerator
- All Implemented Interfaces:
Generator,org.springframework.beans.factory.InitializingBean
@Component
public class GenerateCodeGenerator
extends Object
implements Generator, org.springframework.beans.factory.InitializingBean
This class generates the code for the graphql goals/tasks of the plugin, from the classes coming from the
com.graphql_java_generator.plugin.language package. This classes have been created by {link
This class should not be used directly. Please use the
GenerateCodeDocumentParser.This class should not be used directly. Please use the
GenerateCodePluginExecutor instead.- Author:
- etienne-sf
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintExecution of the code generation.protected StringresolveTemplate(CodeTemplate templateCode) Resolves the template for the given code
-
Field Details
-
MODULE_INFO_TEMPLATE_FILENAME
- See Also:
-
SPRING_SCHEMA_LOCATION
- See Also:
-
-
Constructor Details
-
GenerateCodeGenerator
public GenerateCodeGenerator()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
generateCode
Execution of the code generation. The generation is done on the data build by thegenerateCodeDocumentParser- Specified by:
generateCodein interfaceGenerator- Throws:
MojoExecutionExceptionIOException
-
resolveTemplate
Resolves the template for the given code- Parameters:
templateCode-- Returns:
-