jprotobuf icon indicating copy to clipboard operation
jprotobuf copied to clipboard

优化建议

Open wjm0729 opened this issue 7 years ago • 2 comments

1:ProtobufProxy类的 getCodeGenerator 方法可以公开出来吗?
我想自己做一个自动代码生成.

2:还有 doCreate 里面的 Class<?> newClass = JDKCompilerHelper.getJdkCompiler().compile(className, code, cls.getClassLoader(), fos, lastModify); 这里 能否抽个接口出来, 以便于使用者可以选择ecj或自己的编译器.

wjm0729 avatar Oct 26 '17 06:10 wjm0729

Accept

jhunters avatar Oct 27 '17 02:10 jhunters

feature已经增加 , 版本号 1.10.7与 2.1.3 使用示例:
ICodeGenerator codeGenerator = new ...; Compiler compiler = new ...; ProtobufProxy.create(clazz, compiler, codeGenerator);

jhunters avatar Oct 30 '17 07:10 jhunters