peter-lawrey-admin / Chronicle-Accelerate

HFT meets Blockchain in Java platform
Other
60 stars 14 forks source link

Documentation generator for the XCL Messages #16

Closed motoras closed 6 years ago

motoras commented 6 years ago

This is a solution for generating message documentation automated based on annotations. In order to use the following steps will be required:

This is just a proof of concept, sky is the limit. We can add more descrioptors on the annotations, detect fields which are no annotated and should be, extend the types we can process, add links between message classes and so on.

I atached on the sample archive a class (NewOrderCommand) with the annotations added to it, and the generated ascii doc for it.

If you want to look in more detail how the do generator works please check the XclDocGenerator and the XclDocGeneratorTest classes. Just running the test will generate a sample ascidoc file for some test classes.

I think that this will be a very robuts solution to keep our documentation in sync as every developer will be responsible to keep them up to date.

samples.zip