-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leverage Quarkus code generation for Salesforce DTO generation #3249
Comments
I aussme that the basic idea here is to implement such a class public class CamelSalesForceCodeGen implements CodeGenProvider {
@Override
public String providerId() {
return "camel-salesforce-codegen";
}
@Override
public boolean trigger(CodeGenContext context) throws CodeGenException {
/* the core logic in camel-salesforce-maven-plugin to generate DTOs */
/*
1. fetch Object descriptions by RestClient
2. use velocity engine to generate the DTOs java codes
*/
}
} some properies could be similar with the
What's the benifit we can get from this enhancement ? Maybe generate different codes with launch mode, coulde be useful for testing purpose.. |
I think the main benefit is the ergonomy: end users do not need to maintain an extra version of an extra Maven plugin. All is done via Quarkus plugin (that must be there anyway) and the underlying CQ extension that must be there too. |
@jamesnetherton I found there is a change in I assume that we need to use the |
Quarkus 2.5.0.CR1 will be released some time today. So I'll be merging |
Some random things on this topic:
|
Yes, I was thinking the same thing. We should try to do the same for those other extensions. I can create issues for that.
I think that's the general aim. I.e have something in Camel that both the maven plugin and quarkus extension can reuse so we don't end up reinventing everything in CQ. |
raise upstream CAMEL-17306 to refactor the DTO generation codes. |
@zhfeng Seems the required work on the Camel side is complete. Do you think we can complete the remaining tasks for the CQ side? Would be nice to get it done for CQ 2.12.0 or 2.13.0 if possible. I could try to look into it if you do not have time right now. |
yeah, feel free to take this issue. Thanks! |
It'd be good if we could leverage the code generation features of the
quarkus-maven-plugin
to do the generation of the Salesforce DTOs.Currently this is handled by the
camel-salesforce-maven-plugin
. If we could make the core logic available is some artifact that our extension would depend on, then we should be able to add hooks for thegenerate-code
mojo.The text was updated successfully, but these errors were encountered: