Class GeneratedSourceCompilerFactory

java.lang.Object
com.graphql_java_generator.plugin.test.compiler.GeneratedSourceCompilerFactory

public class GeneratedSourceCompilerFactory extends Object
Author:
etienne-sf
  • Constructor Details

    • GeneratedSourceCompilerFactory

      public GeneratedSourceCompilerFactory()
  • Method Details

    • getGeneratedSourceCompiler

      public static GeneratedSourceCompiler getGeneratedSourceCompiler(org.slf4j.Logger log, String className, File javaSrcFolder, File classTargetFolder, String classpath, String encoding)
      The method to get a new instance of GeneratedSourceCompiler
      Parameters:
      log - The logger, where to write all output messages
      className - The class that is being generated
      javaSrcFolder - The folder, where to store java files.
      classTargetFolder - The folder, where to store class files.
      classpath - The classpath to be added to the compiler classpath, to allow compilation of the received generated sources. If null, the current classpath is used (taken from the "java.class.path" system property)
      charset - The name of the Charset (like UTF-8...), to use to store the java source file.
      Returns: