This is a template for creating a Java project using ApiGear. For more details on ApiGear please visit apigear.io or the ApiGear documentation.
Clone the repository and install the submodules.
git clone https://github.com/apigear-io/template-java.git
cd template-java
git submodule update --init --recursiveClone the repository and run task install to install the ApiGear CLI. You need to have Go installed.
We use Task to manage the project. Install it and run task to see all available commands.
task install- Run
task runto generate the code. - Run
task testto validate the generated code against the goldenmaster.
See the ApiGear documentation for more information.
This is not fully implemented template. It supports only some of the ApiGear features.
The template offers the following feature switches which can be enabled during code generation:
api: create interface files and an abstract implementationstubs: create a stub implementation, that handles all the properties, but is missing the business logic.android: create the adaptation layer for android messenger communication. Produces the client and the service sides for the interfaces.jnibridge: create the java jni implementation, that is missing the c++ side and build files. See example of using it in the jni feature in unreal template.testclientapp: create example messenger client application. This is not ready to use example - the logic for generated buttons should be filled (which values to send), the rest is already there. The app serves only first defined interface.testserviceapp: create example messenger service application. This is not ready to use example - the logic for generated buttons should be filled (which values to send), the rest is already there. The app serves only first defined interface.
- github workflow
- demo app
- imports: support for importing other APIs
- extends: support for extending other APIs
- external: support for external APIs
- test: support for unit testing
- olink: object link support (req. objectlink core java library) using websockets