Skip to content
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

Integrate Pegasus Java generator with Courier #15

Closed
jpbetz opened this issue Dec 10, 2015 · 1 comment
Closed

Integrate Pegasus Java generator with Courier #15

jpbetz opened this issue Dec 10, 2015 · 1 comment

Comments

@jpbetz
Copy link
Contributor

jpbetz commented Dec 10, 2015

Courier provides an API in the generator-api project that is used by the build system integrations (gradle-plugin and sbt-plugin). This API is then implemented by each language specific generator (scala, swift, android java).

However, there is no implementation of the API for the standard Pegasus Java data binding generator. As a result, it is not possible to generate Pegasus Java data bindings using the Courier schema language.

This is a relatively straight forward task. We simply need to define a new java/generator project and define a java/generator/src/main/java/org/coursera/courier/JavaGenerator.java class that implements PegasusCodeGenerator with a generate method that simply delegates to the existing Pegasus Java generator implementation.

Be sure to document how to set up a Courier project for Java in a README and link to it from the main courier documentation!

@jpbetz
Copy link
Contributor Author

jpbetz commented Feb 4, 2016

Done.

@jpbetz jpbetz closed this as completed Feb 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant