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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
Execution of the code generation.protected String
resolveTemplate
(CodeTemplate templateCode) Resolves the template for the given code
-
Constructor Details
-
GenerateCodeGenerator
public GenerateCodeGenerator()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
generateCode
Execution of the code generation. The generation is done on the data build by thegenerateCodeDocumentParser
- Specified by:
generateCode
in interfaceGenerator
- Throws:
MojoExecutionException
IOException
-
resolveTemplate
Resolves the template for the given code- Parameters:
templateCode
-- Returns:
-