Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 959 Bytes

README.md

File metadata and controls

35 lines (21 loc) · 959 Bytes

hazelcast-client-protocol

This project generates code of client protocol accross languages.

Output directory of generated classes

hazelcast-client-protocol/hazelcast/target/generated-sources/annotations

To generate java classes and hazelcast-client-protocol.jar

mvn clean compile

We have code generation for some other languages as well.

To generate for other languages

mvn clean compile -Dhazelcast.generator.[LANGUAGE]=TRUE 

Supported options for [LANGUAGE] are

  1. cpp (C++)
  2. cs (C#)
  3. py (python)
  4. md (documentation of protocol)

To generate for another custom languages, an ftl file with codec-template-[LANGUAGE].ftl needs to be added to
hazelcast-client-protocol/hazelcast-code-generator/src/main/resources

For ftl see,
http://freemarker.incubator.apache.org/

After putting the ftl file, following command can be run to generate sources

mvn clean compile -Dhazelcast.generator.[LANGUAGE]=TRUE