jackdaw icon indicating copy to clipboard operation
jackdaw copied to clipboard

ProcessingEnvironment propagation

Open jvmlet opened this issue 9 years ago • 2 comments

Hello Would you please expose ProcessingEnvironment from ProcessorContext to CodeGeneratorContext so XXXcodeGenerator implementation will have access to ProcessingEnvironment API ? Thanks

jvmlet avatar Jan 11 '16 07:01 jvmlet

@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?

vbauer avatar Jan 20 '16 18:01 vbauer

Hi Yes, I've found this API. IMHO, it will be cleaner to have this exposed from CodeGeneratorContext

jvmlet avatar Jan 21 '16 08:01 jvmlet