statmark56
10/05/2022, 8:20 AMclass MyCodeGen : CodeGen {
override fun generate(): {
// codegen impl
}
}
Then client passes the classpath to ksp arg:
ksp {
arg("custom_codegen", "classpath.to.MyCodeGen")
}
And somewhat processor able to construct the MyCodeGen
instance via the classpath param and use it to generate custom code by using client's logic?
Thank youJiaxiang
10/05/2022, 4:30 PM