Package com.cloudimpl.codegen4j.spi
Class MavenCodeGenSpi
- java.lang.Object
-
- com.cloudimpl.codegen4j.spi.MavenCodeGenSpi
-
public abstract class MavenCodeGenSpi extends Object
- Author:
- nuwansa
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMavenCodeGenSpi.Project
-
Constructor Summary
Constructors Constructor Description MavenCodeGenSpi(String projectName, String namespace)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddClassPath(String artifact)protected voidaddDependacyPath(String path, boolean runtime)protected voidaddProperty(String key, String value)protected voidcompileFiles(File... files)protected voidcompileFiles(List<File> javaFiles)abstract voidexecute()protected List<String>getAllSourceFiles()StringgetCodeGenFolder()MavenCodeGenSpi.ProjectgetProject()StringgetProperty(String prop, String defaultValue)booleanhasProperty(String prop)protected ClassloadClass(String className)protected voidlog(String log)voidsetProject(String baseDir, String buildDir, String buildTargetDir)
-
-
-
Method Detail
-
addDependacyPath
protected void addDependacyPath(String path, boolean runtime)
-
addClassPath
protected void addClassPath(String artifact)
-
getCodeGenFolder
public String getCodeGenFolder()
-
getProject
public MavenCodeGenSpi.Project getProject()
-
hasProperty
public boolean hasProperty(String prop)
-
compileFiles
protected void compileFiles(File... files)
-
log
protected void log(String log)
-
execute
public abstract void execute()
-
-