Class GenerateCodePluginExecutor

java.lang.Object
com.graphql_java_generator.plugin.generate_code.GenerateCodePluginExecutor
All Implemented Interfaces:
PluginExecutor

@Component public class GenerateCodePluginExecutor extends Object implements PluginExecutor
This class is responsible for the execution of the code generation, so that only a minmal amount of code is in the GraphQL and the Gradle plugins. It is responsible for:
  • Check if the plugin logic should be executed (comparison of the date of the provided schema, and the generated sources and resources)
  • Parsing of the provided schemas
  • Source and resource generation
    Author:
    etienne-sf
    • Constructor Details

      • GenerateCodePluginExecutor

        public GenerateCodePluginExecutor()
    • Method Details

      • execute

        public void execute() throws IOException
        Actual execution of the goal/task.
        This method is the method called by the Maven and Gradle plugins. There should be one such component in the relevant package, for each goal.
        Specified by:
        execute in interface PluginExecutor
        Throws:
        IOException