ProcessingEnvironment propagation
jvmlet opened this issue · 2 comments
jvmlet commented
Hello
Would you please expose ProcessingEnvironment from ProcessorContext to CodeGeneratorContext so XXXcodeGenerator implementation will have access to ProcessingEnvironment API ?
Thanks
vbauer commented
@jvmlet Hello. It is possible to use ProcessorContextHolder#getProcessingEnvironment()
or ProcessorContextHolder#getContext()
in any code generator to have access to ProcessingEnvironment API. Is it ok for you?
jvmlet commented
Hi
Yes, I've found this API.
IMHO, it will be cleaner to have this exposed from CodeGeneratorContext