Class GeneratedSourceCompilerFactory
java.lang.Object
com.graphql_java_generator.plugin.test.compiler.GeneratedSourceCompilerFactory
- Author:
- etienne-sf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratedSourceCompiler
getGeneratedSourceCompiler
(org.slf4j.Logger log, String className, File javaSrcFolder, File classTargetFolder, String classpath, String encoding) The method to get a new instance ofGeneratedSourceCompiler
-
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 ofGeneratedSourceCompiler
- Parameters:
log
- The logger, where to write all output messagesclassName
- The class that is being generatedjavaSrcFolder
- 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 theCharset
(like UTF-8...), to use to store the java source file.- Returns:
-